| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | 
							- 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 { 
 
-         expression { build_repo != null || not build_repo.empty }
 
-       }
 
-       steps {
 
-         echo "Building with repo $build_repo and updating $service_update"
 
-         sh 'pwd'
 
-       }
 
-       post {
 
-         always {
 
-           echo "Step always"
 
-         }
 
-         changed {
 
-           echo "Step change"
 
-         }
 
-         failure {
 
-           echo "Step failure"
 
-         }
 
-       }
 
-     }
 
-   }
 
-   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"
 
-     }
 
-   }
 
- }
 
 
  |