Jenkinsfile 437 B

12345678910111213141516171819202122232425
  1. pipeline {
  2. agent {
  3. label "swarm"
  4. }
  5. parameters {
  6. string(
  7. name: "service",
  8. defaultValue: "",
  9. description: "The name of service that should be scaled"
  10. )
  11. string(
  12. name: "scale",
  13. defaultValue: "",
  14. description: "Number of replicas to add or remove."
  15. )
  16. }
  17. stages {
  18. stage("Scale") {
  19. steps {
  20. echo "Scaling $service by $scale"
  21. sh 'false'
  22. }
  23. }
  24. }
  25. }