diff --git a/.github/release-files-spec.json b/.github/release-files-spec.json new file mode 100644 index 00000000..4ceba9f6 --- /dev/null +++ b/.github/release-files-spec.json @@ -0,0 +1,28 @@ +{ + "files": [ + { + "aql": { + "items.find": { + "$and": [ + { + "@build.name": "${buildname}", + "@build.number": "${buildnumber}", + "path": {"$match": "org*"} + }, + { + "$or": [ + { + "name": {"$match": "*.pom"} + }, + { + "name": {"$match": "*.jar"} + } + ] + } + ] + } + }, + "target": "nexus/" + } + ] +} diff --git a/.github/workflows/apps-plugin-milestone.yml b/.github/workflows/apps-plugin-milestone.yml index e0b00ed4..443c7e5d 100644 --- a/.github/workflows/apps-plugin-milestone.yml +++ b/.github/workflows/apps-plugin-milestone.yml @@ -57,7 +57,7 @@ jobs: -DprocessAllModules=true \ -DgenerateBackupPoms=false \ -Dartifactory.publish.artifacts=false \ - -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-'${milestoneVersion} \ + -DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-'${inputs.milestoneVersion} \ -B jfrog rt build-clean jfrog rt mvn -gs settings.xml -Pstagingmilestone,full,deploymentfiles -B install -DskipTests @@ -69,6 +69,13 @@ jobs: tag-release-branch: apps-plugin/v${{ env.spring_cloud_dataflow_apps_plugin_version }} tag-release-tag: ${{ env.spring_cloud_dataflow_apps_plugin_version }} tag-release-tag-prefix: apps-plugin/v + - name: Promote Build + run: | + jfrog rt build-promote $JFROG_CLI_BUILD_NAME $JFROG_CLI_BUILD_NUMBER libs-milestone-local - name: Clean cache run: | find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr + - name: Print Build Info + run: | + echo "::notice ::JFROG_CLI_BUILD_NAME=$JFROG_CLI_BUILD_NAME" + echo "::notice ::JFROG_CLI_BUILD_NUMBER=$JFROG_CLI_BUILD_NUMBER" diff --git a/.github/workflows/apps-plugin-release.yml b/.github/workflows/apps-plugin-release.yml index fd47dc18..efd028e0 100644 --- a/.github/workflows/apps-plugin-release.yml +++ b/.github/workflows/apps-plugin-release.yml @@ -65,6 +65,13 @@ jobs: tag-release-branch: apps-plugin/v${{ env.spring_cloud_dataflow_apps_plugin_version }} tag-release-tag: ${{ env.spring_cloud_dataflow_apps_plugin_version }} tag-release-tag-prefix: apps-plugin/v + - name: Promote Build + run: | + jfrog rt build-promote $JFROG_CLI_BUILD_NAME $JFROG_CLI_BUILD_NUMBER libs-release-local - name: Clean cache run: | find ~/.m2/repository -type d -name '*SNAPSHOT' | xargs rm -fr + - name: Print Build Info + run: | + echo "::notice ::JFROG_CLI_BUILD_NAME=$JFROG_CLI_BUILD_NAME" + echo "::notice ::JFROG_CLI_BUILD_NUMBER=$JFROG_CLI_BUILD_NUMBER"