Steps

Conditional Step

stage('Integration tests') {
   when {
      expression { flowControl.runIntegrationTests() }
   }
   steps {
      script { commandRunner.integrationTests() }
   }
}

Retry

stage('Deploy repository'){
   steps {
      script {
         timeout(time: 30, unit: 'MINUTES') {
            retry(1) {
               deployer.deployToRepo();
            }
         }
      }
   }
}

After Step

In this case a message is stored in an environmental variable, and then it always publishes the coverage results.

After All the Steps

Last updated

Was this helpful?