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

+ 10 - 7
Jenkinsfile

@@ -4,20 +4,23 @@ pipeline {
   }
   parameters {
     string(
-      name: "service",
-      defaultValue: "",
-      description: "The name of service that should be scaled"
+      name: "build_repo",
+      defaultValue: "prod",
+      description: "Repository to build from. If not presented - build will not run."
     )
     string(
-      name: "scale",
+      name: "service_update",
       defaultValue: "",
-      description: "Number of replicas to add or remove."
+      description: "Services to update - i.e. node or/and node-api"
     )
   }
   stages {
-    stage("Scale") {
+    stage("Build") {
+      when { 
+        not expression { build_repo == null || build_repo.empty }
+      }
       steps {
-        echo "Scaling $service by $scale"
+        echo "Building with repo $build_repo and updating $service_update"
         sh 'pwd'
       }
       post {