Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Speed up the clean / post-clean process also, no need to linger
Browse files Browse the repository at this point in the history
going through all the build tree
  • Loading branch information
kmoore134 committed Sep 24, 2018
1 parent 6d4ca54 commit c84607c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ pipeline {

stage('Pre-Clean') {
steps {
sh 'cd ${SRCROOT} && make clean'
sh 'cd ${SRCROOT}/release && make clean'
sh 'rm -rf /usr/obj${SRCROOT} || true'
sh 'chflags -R noschg /usr/obj${SRCROOT} || true'
sh 'rm -rf /usr/obj${SRCROOT} || true'
}
}
stage('World') {
Expand Down Expand Up @@ -80,8 +81,8 @@ pipeline {
post {
always {
echo "*** Cleaning up ***"
sh 'cd ${SRCROOT} && make clean >/dev/null 2>/dev/null || true'
sh 'cd ${SRCROOT}/release && make clean >/dev/null 2>/dev/null || true '
sh 'rm -rf /usr/obj${SRCROOT} || true'
sh 'chflags -R noschg /usr/obj${SRCROOT} || true'
sh 'rm -rf /usr/obj${SRCROOT} || true'
sh 'umount -f ${SRCROOT} || true'
script {
Expand Down

0 comments on commit c84607c

Please sign in to comment.