Parcourir la source

更新 'Jenkinsfile'

chenghongxi il y a 4 ans
Parent
commit
60c63aa665
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -15,8 +15,8 @@ node {
         def projectList = project_name.split(",") 
         
         for (int i = 0; i < projectList.length ; i++) {
-             echo "${projectList}[0]"
-             script: "sh cd ${jenkins_home}${projectList}[i]"
+             echo "${projectList[i]}"
+             script: "sh cd ${jenkins_home}${projectList[i]}"
         }      
     }
 }