Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit e46de42

Browse files
authored
Update Jenkinsfile-online
1 parent 14fcaf5 commit e46de42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Jenkinsfile-online‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ pipeline {
3030
stage ('unit test') {
3131
steps {
3232
container ('maven') {
33-
sh 'mvn clean -o -gs `pwd`/configuration/settings.xml test'
33+
sh 'mvn clean -gs `pwd`/configuration/settings.xml test'
3434
}
3535
}
3636
}
3737

3838
stage ('build & push') {
3939
steps {
4040
container ('maven') {
41-
sh 'mvn -o -Dmaven.test.skip=true -gs `pwd`/configuration/settings.xml clean package'
41+
sh 'mvn -Dmaven.test.skip=true -gs `pwd`/configuration/settings.xml clean package'
4242
sh 'docker build -f Dockerfile-online -t $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER .'
4343
withCredentials([usernamePassword(passwordVariable : 'DOCKER_PASSWORD' ,usernameVariable : 'DOCKER_USERNAME' ,credentialsId : "$DOCKER_CREDENTIAL_ID" ,)]) {
4444
sh 'echo "$DOCKER_PASSWORD" | docker login $REGISTRY -u "$DOCKER_USERNAME" --password-stdin'

0 commit comments

Comments
 (0)