Vadim Surkov 7 years ago
parent
commit
dd8cb1d253
1 changed files with 6 additions and 5 deletions
  1. 6 5
      Jenkinsfile

+ 6 - 5
Jenkinsfile

@@ -2,6 +2,9 @@ pipeline {
   agent {
     label "swarm"
   }
+  environment {
+    git_url=""
+  }
   parameters {
     string(
       name: "build_repo",
@@ -11,7 +14,7 @@ pipeline {
     string(
       name: "service_update",
       defaultValue: "",
-      description: "Services to update - i.e. node or/and node-api"
+      description: "Services to update - i.e. info_node or/and info_node-api"
     )
   }
   stages {
@@ -19,7 +22,8 @@ pipeline {
       when { expression { build_repo != "none" } }
       steps {
         echo "Building with repo $build_repo"
-        sh 'pwd'
+        sh '''pwd
+              ls'''
       }
     }
     stage("Update") {
@@ -29,9 +33,6 @@ pipeline {
         script {
           for (String item : service_update.split()) {
             echo "Updating $item"
-            if ( item=="blabla" ) {
-              sh 'false'
-            }
           }
         }
         sh 'ls'