Skip to content
Snippets Groups Projects
Commit f4f659f3 authored by OZGCloud's avatar OZGCloud
Browse files

Merge branch 'master' of git.ozg-sh.de:mgm/user-manager

parents 01b03856 3e5cc1fc
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,44 @@ pipeline { ...@@ -202,6 +202,44 @@ pipeline {
} }
} }
} }
stage('march build image') {
when {
branch 'master'
}
steps {
script {
FAILED_STAGE=env.STAGE_NAME
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh './mvnw -pl user-manager-server -s $MAVEN_SETTINGS clean verify \
-Pnative -Dquarkus.container-image.registry=docker.ozg-sh.de \
-Dquarkus.container-image.username=${USER} \
-Dquarkus.container-image.password=${PASSWORD} \
-Dquarkus.container-image.push=true \
-Dquarkus.container-image.build=true \
-Dquarkus.native.remote-container-build=true \
-Dquarkus.native.additional-bubuiild-args=-march=compatibility \
-Dmaven.wagon.http.retryHandler.count=3'
}
}
}
}
}
stage('march push image') {
when {
branch 'master'
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
tagAndPushDockerImage('march-snapshot-latest')
}
}
}
} }
post { post {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment