Browse Source

Add Jenkinsfile

Admin User 7 years ago
parent
commit
ba6efb7667
1 changed files with 24 additions and 0 deletions
  1. 24 0
      Jenkinsfile

+ 24 - 0
Jenkinsfile

@@ -0,0 +1,24 @@
+pipeline {
+  agent {
+    label "swarm"
+  }
+  parameters {
+    string(
+      name: "service",
+      defaultValue: "",
+      description: "The name of service that should be scaled"
+    )
+    string(
+      name: "scale",
+      defaultValue: "",
+      description: "Number of replicas to add or remove."
+    )
+  }
+  stages {
+    stage("Scale") {
+      steps {
+        echo "Scaling $service by $scale"
+      }
+    }
+  }
+}