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

Commit d9b0e3b

Browse files
authored
Update Jenkinsfile-online
1 parent a5020eb commit d9b0e3b

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
@@ -29,15 +29,15 @@ pipeline {
2929
stage ('unit test') {
3030
steps {
3131
container ('maven') {
32-
sh 'mvn clean -o -gs `pwd`/configuration/settings.xml test'
32+
sh 'mvn clean -gs `pwd`/configuration/settings.xml test'
3333
}
3434
}
3535
}
3636

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

0 commit comments

Comments
 (0)