Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library 'aws-access-keys@master'

pipeline {
agent { label 'ubuntu-build-slave-java17' }
agent { label 'ubuntu-build-slave-java17' }
parameters {
string(name: 'SDK_RELEASE_TAG', defaultValue: '', description: 'Supply version to deploy to repo1 (e.g., 4.4.100). Leave empty to deploy to reporting-new-nexus.')
}
Expand Down Expand Up @@ -92,7 +92,7 @@ def buildCode() {
// Git tag release (instruction #5: artifact flow)
sh(script: "git tag ${artifactTag} ${commitHash}")
withCredentials([usernamePassword(credentialsId: '2cb048f3-6369-4220-bbb7-2668527a8c22', passwordVariable: 'GIT_TOKEN', usernameVariable: 'GIT_USERNAME')]) {
sh "git push https://${GIT_USERNAME}:${GIT_TOKEN}@${repositoryUrl} --tags"
sh "git push https://${GIT_USERNAME}:${GIT_TOKEN}@${repositoryUrl} --tags"
}
} else {
echo "No deployment: branch=${BRANCH_NAME}"
Expand All @@ -105,4 +105,4 @@ def buildCode() {
}
}
echo "Current build currentResult (buildCode): ${currentBuild.currentResult}"
}
}