pipeline
{
agent { label 'master'}
stages{
stage('t1'){
steps {
timeout(time: 10, unit: 'SECONDS') {
sh 'sleep 5'
sh 'echo t1'
}
}
}
stage('t2'){
steps {
sh 'echo t2'
}
}
}
}