Explorar el Código

更新 'Jenkinsfile'

sifu-gogs hace 2 años
padre
commit
1fc023cc9c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -1,5 +1,5 @@
 pipeline {
-    agent { dockerfile true }
+    agent none
 
     stages {
 		stage('pullCode'){
@@ -12,7 +12,8 @@ pipeline {
             steps {
                 echo 'Building..'
                 sh '~/tools/apache-maven-3.6.3/bin/mvn  clean install -Dmaven.test.skip=true'
-            }
+                sh 'docker build'          
+}
         }
         stage('Test') {
             steps {