Browse Source

更新 'Jenkinsfile'

sifu-gogs 2 years ago
parent
commit
1fc023cc9c
1 changed files with 3 additions and 2 deletions
  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 {