Browse Source

更新 'Jenkinsfile'

chenghongxi 4 năm trước cách đây
mục cha
commit
de990f8abf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -10,7 +10,7 @@ node {
         checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'd4b4c06c-7a45-4969-a06d-8363858e81cd', url: 'http://10.68.0.122:3000/fanyijian/k8s.git']]])}
     stage('build images') {
         for (int i = 0; i < projectList.length ; i++) {
-             sh "echo 正在build images,项目名为:${projectList[i]} "
+             echo "正在build images,项目名为:${projectList[i]}"
              sh "docker build -t ${xy_image}${projectList[i]}:${release} -f ${jenkins_home}${projectList[i]}/Dockerfile ${jenkins_home}${projectList[i]}"
         }      
     }