Browse Source

更新 'Jenkinsfile'

chenghongxi 4 years ago
parent
commit
550c4517b6
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Jenkinsfile

+ 2 - 4
Jenkinsfile

@@ -23,10 +23,8 @@ node {
     stage('push aliyuncs registry') {
          for (int i = 0; i < projectList.length ; i++) {
               cd ${jenkins_home}
-              sh """
-		      chmod +x ${jenkins_home}jenkins.py
-		      python3 jenkins.py 
-              """
+		      sh "chmod +x ${jenkins_home}jenkins.py"
+		      sh "python3 jenkins.py"
          }
     }
 }