|
@@ -10,10 +10,9 @@ pipeline {
|
|
|
stage('Build') {
|
|
|
steps {
|
|
|
echo 'Building..'
|
|
|
- sh 'docker-compose stop'
|
|
|
- sh 'docker-compose rm -sf'
|
|
|
+ sh 'docker-compose down'
|
|
|
sh '~/tools/apache-maven-3.6.3/bin/mvn clean install -Dmaven.test.skip=true'
|
|
|
- sh 'docker build -t red:0.1 .'
|
|
|
+ sh 'docker build -t red:${BUILD_NUMBER} .'
|
|
|
}
|
|
|
}
|
|
|
stage('Test') {
|