Skip to content

Commit

Permalink
Add buildName and buildNumber to upload
Browse files Browse the repository at this point in the history
Added buildName and buildNumber to descriptor upload
  • Loading branch information
Corneil du Plessis authored Nov 19, 2024
1 parent 1954ffb commit be592e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -767,13 +767,17 @@ jobs:
shell: bash
env:
RELEASE_TRAIN_VERSION: ${{ needs.parameters.outputs.release_train_version }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
BUILD_NAME: ${{ needs.parameters.outputs.build_name }}
BUILD_NUMBER: ${{ needs.parameters.outputs.build_number }}
run: |
ROOT_DIR=$(realpath $PWD)
pushd stream-applications > /dev/null
echo "::notice ::uploading unique version snapshot descriptors:$RELEASE_TRAIN_VERSION"
set -e
SRC_ROOT=$ROOT_DIR/stream-applications/stream-applications-release-train/stream-applications-descriptor/target/classes/META-INF
TARGET_REPO=libs-snapshot-local/org/springframework/cloud/stream/app/stream-applications-descriptor/${RELEASE_TRAIN_VERSION}
SRC_ROOT="$ROOT_DIR/stream-applications/stream-applications-release-train/stream-applications-descriptor/target/classes/META-INF"
TARGET_REPO="libs-snapshot-local;buildName=${BUILD_NAME};buildNumber=${BUILD_NUMBER}/org/springframework/cloud/stream/app/stream-applications-descriptor/${RELEASE_TRAIN_VERSION}"
jfrog rt upload "$SRC_ROOT/kafka-apps-maven.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-maven"
jfrog rt upload "$SRC_ROOT/kafka-apps-docker.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-docker"
jfrog rt upload "$SRC_ROOT/kafka-apps-harbor.properties" "${TARGET_REPO}/stream-applications-descriptor-${RELEASE_TRAIN_VERSION}.stream-apps-kafka-harbor"
Expand Down

0 comments on commit be592e6

Please sign in to comment.