Skip to content

Commit

Permalink
Separated cleanup stage in Jenkinsfile
Browse files Browse the repository at this point in the history
Separated cleanup stage in Jenkinsfile
  • Loading branch information
silvae86 committed Jun 17, 2017
1 parent d647a5f commit b348a11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ pipeline {
//sh "chmod +x $WORKSPACE/conf/scripts/deploy.sh"
}
}
stage('Cleanup') {
steps {
echo "Cleaning workspace at $WORKSPACE"
sh "rm -rf $WORKSPACE/*"
}
}
}
post
{
always {
failure {
echo "Cleaning workspace at $WORKSPACE"
sh "rm -rf $WORKSPACE/*"
}
Expand Down

0 comments on commit b348a11

Please sign in to comment.