Skip to content
Snippets Groups Projects
Commit 1f5c052d authored by Jan Zickermann's avatar Jan Zickermann
Browse files

Merge pull request 'OZG-4717 OZG-5080 Use the build.number in jenkins, again'...

Merge pull request 'OZG-4717 OZG-5080 Use the build.number in jenkins, again' (#21) from OZG-4717-BasicSetupJenkins into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/administration/pulls/21
parents dc6ef4ea ce3ba14d
Branches
Tags
No related merge requests found
......@@ -13,6 +13,7 @@ pipeline {
IMAGE_TAG = generateImageTag()
HELM_CHART_VERSION = generateHelmChartVersion()
BUILD_PROFILE = getBuildProfile()
BUILD_NUMBER = env.BUILD_NUMBER
}
options {
......@@ -116,7 +117,7 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'mvn -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3 $BUILD_PROFILE -Ddocker.publishRegistry.username=${USER} -Ddocker.publishRegistry.password=${PASSWORD}'
sh "mvn -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3 $BUILD_PROFILE -Ddocker.publishRegistry.username=${USER} -Ddocker.publishRegistry.password=${PASSWORD} -Dbuild.number=$BUILD_NUMBER"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment