12345678910111213141516171819202122232425 |
- 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"
- sh 'false'
- }
- }
- }
- }
|