ci: make deletion a separate step
Deletion as a separate step so it's more understandable what's actually happening. Change-Id: Icb3cefe7e4093c56604af633ac0e02226bae42ac
This commit is contained in:
parent
512d0d61fb
commit
9c232cebe1
@ -19,7 +19,12 @@ pipeline {
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
sh "chmod -R 777 ." // ensure Jenkins can delete the working directory, with before-checkout hook
|
||||
// Delete any content left over from a previous run.
|
||||
sh "chmod -R 777 ."
|
||||
// Bash requires extglob option to support !(.git) syntax,
|
||||
// and we don't want to delete .git to have faster clones.
|
||||
sh 'bash -O extglob -c "rm -r !(.git)"'
|
||||
|
||||
checkout scm
|
||||
|
||||
sh 'mkdir -p .build'
|
||||
|
Loading…
Reference in New Issue
Block a user