Skip to content

Commit

Permalink
DAT-15862 DevOps :: Release Rollback fails (#99)
Browse files Browse the repository at this point in the history
* chore(extension-release-prepare.yml): update extension-release-prepare workflow to use the latest version of extension-release-rollback action
chore(extension-release-prepare.yml): remove unused 'secrets: inherit' configuration from extension-release-rollback action

* fix(extension-release-prepare.yml): save release files including pom.xml.releaseBackup and release.properties
fix(pom-release-published.yml): update extension-release-prepare.yml workflow to use DAT-15862 version

* fix(extension-release-rollback.yml): remove unnecessary arguments and fix formatting

The `-DnewVersion` and `-Dtag` arguments were removed as they were not needed. Additionally, a newline was added at the end of the file for proper formatting.

* fix(extension-release-prepare.yml): remove unnecessary build-helper:parse-version command in Maven release preparation step
fix(extension-release-rollback.yml): correct typo in Maven release rollback step, change "versions:rever" to "versions:revert"

* fix(extension-release-rollback.yml): correct typo in Maven command from 'rever' to 'revert' for proper release rollback functionality

* chore(create-release.yml): update sonar-push.yml version to v0.5.0 for improved functionality
chore(extension-attach-artifact-release.yml): update script file versions to v0.5.0 for improved functionality
chore(extension-release-prepare.yml): update extension-release-rollback.yml version to v0.5.0 for improved functionality
chore(extension-release-published.yml): update extension-release-prepare.yml version to v0.5.0 for improved functionality
chore(os-extension-test.yml): update sonar-pull-request.yml version to v0.5.0 for improved functionality
chore(package-deb.yml): update file versions to v0.5.0 for improved functionality
chore(pom-release-published.yml): update extension-release-prepare.yml version to v0.5.0 for improved functionality
chore(pro-extension-test.yml): update sonar-pull-request.yml version to v0.5.0 for improved functionality
  • Loading branch information
jandroav authored Oct 17, 2023
1 parent 2df68f7 commit f3f12e1
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
sonar:
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.5.0
secrets: inherit

create-release:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:

- name: Get Reusable Script Files
run: |
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/.github/upload_asset.sh
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/.github/upload_asset.sh
chmod +x $PWD/.github/get_draft_release.sh
chmod +x $PWD/.github/sign_artifact.sh
chmod +x $PWD/.github/upload_asset.sh
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Get upload_zip.sh Script File
if: inputs.zip == 'true'
run: |
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/.github/upload_zip.sh
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/.github/upload_zip.sh
chmod +x $PWD/.github/upload_zip.sh
- name: Attach Zip File to Draft Release
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/extension-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,23 @@ jobs:
- name: Prepare Maven Release
run: |
mvn -B build-helper:parse-version versions:set release:clean release:prepare \
mvn -B build-helper:parse-version release:clean release:prepare \
-Dusername=liquibot -Dpassword=$GITHUB_TOKEN \
-Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" \
-DdevelopmentVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.0-SNAPSHOT -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion} \
-DcheckModificationExcludeList=pom.xml
- name: Save Release files
if: always()
uses: actions/upload-artifact@v3
with:
name: release-files
path: |
**/pom.xml.*
**/pom.xml.releaseBackup
**/release.properties
release-rollback:
needs: prepare-release
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: liquibase/build-logic/.github/workflows/extension-release-rollback.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/extension-release-rollback.yml@v0.5.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:
maven-release:
needs: release
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.5.0
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/extension-release-rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ jobs:

- name: Perform Maven Release Rollback
run: |
mvn -B release:rollback \
mvn -B versions:revert release:rollback \
-Dusername=liquibot -Dpassword=$GITHUB_TOKEN \
-Darguments="-Dmaven.javadoc.skip=true -Dmaven.test.skipTests=true -Dmaven.test.skip=true -Dmaven.deploy.skip=true" \
-DdevelopmentVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion}-SNAPSHOT -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion} \
-DconnectionUrl=scm:git:https://github.com/${{ github.repository }}.git -Dtag=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion} \
-DconnectionUrl=scm:git:https://github.com/${{ github.repository }}.git \
-DcheckModificationExcludeList=pom.xml
2 changes: 1 addition & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.5.0
secrets: inherit
8 changes: 4 additions & 4 deletions .github/workflows/package-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
# Under the src folder is where specific packages files live. The GitHub action inputs will modify the universal package-deb-pom.xml to tell the process which assets to use during the packaging step
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/deb/control
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/main/archive
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/src/${{ inputs.artifactId }}/deb/control/control
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/src/${{ inputs.artifactId }}/deb/control/postinst
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.4.9/.github/package-deb-pom.xml
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/src/${{ inputs.artifactId }}/deb/control/control
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/src/${{ inputs.artifactId }}/deb/control/postinst
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.5.0/.github/package-deb-pom.xml
- name: Set up Maven
uses: stCarolas/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pom-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:
maven-release:
needs: release
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.5.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.4.9
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.5.0
secrets: inherit

0 comments on commit f3f12e1

Please sign in to comment.