wuheng 1 жил өмнө
parent
commit
43990b8f29
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      Jenkinsfile

+ 2 - 1
Jenkinsfile

@@ -14,6 +14,7 @@ pipeline {
             steps {
             steps {
                 echo 'Building..'
                 echo 'Building..'
                 sh 'docker-compose down'
                 sh 'docker-compose down'
+				sh '~/tools/apache-maven-3.6.3/bin/mvn sonar:sonar'
                 sh '~/tools/apache-maven-3.6.3/bin/mvn  clean install -Dmaven.test.skip=true'
                 sh '~/tools/apache-maven-3.6.3/bin/mvn  clean install -Dmaven.test.skip=true'
                 sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
                 sh 'docker build -t ${BRANCH_NAME}:${BUILD_NUMBER} .'
             }
             }
@@ -26,7 +27,7 @@ pipeline {
         stage('Deploy') {
         stage('Deploy') {
             steps {
             steps {
                 echo 'Deploying....'
                 echo 'Deploying....'
-                sh 'docker ps'
+                sh 'docker-compose up -d'
             }
             }
         }
         }
     }
     }