| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | 
							- pipeline {
 
-   agent {
 
-     label "swarm"
 
-   }
 
-   parameters {
 
-     string(
 
-       name: "build_repo",
 
-       defaultValue: "prod",
 
-       description: "Repository to build from. If not presented - build will not run."
 
-     )
 
-     string(
 
-       name: "service_update",
 
-       defaultValue: "",
 
-       description: "Services to update - i.e. node or/and node-api"
 
-     )
 
-   }
 
-   stages {
 
-     stage("Build") {
 
-       when { 
 
-         allOf {
 
-           expression { build_repo != null }
 
-           expression { not build_repo.empty }
 
-         }
 
-       }
 
-       steps {
 
-         echo "Building with repo $build_repo"
 
-         sh 'pwd'
 
-       }
 
-     }
 
-     stage("Update") {
 
-       when { 
 
-         allOf {
 
-           expression { service_update != null }
 
-           expression { not service_update.empty }
 
-         }
 
-       }
 
-       steps {
 
- //         service_update.split()
 
-         echo "Updating $service_update"
 
-         script {
 
-           for (String item : service_update.split()) {
 
-             echo item
 
-           }
 
-         }
 
-         sh 'ls'
 
-       }
 
-     }
 
-   }
 
-   post {
 
-     always {
 
-       echo "It's always good to be here."
 
-     }
 
-     changed {
 
-       echo "Something changed..."
 
-     }
 
-     failure {
 
-       echo "Oh, snap. It's failed again"
 
-     }
 
-     success {
 
-       echo "Fine !!! It's SUCCESS !!!"
 
-     }
 
-     unstable {
 
-       echo "Unstable ...."
 
-     }
 
-     aborted {
 
-       echo "Hmmm... It's aborted"
 
-     }
 
-   }
 
- }
 
 
  |