Skip to content

Commit

Permalink
use script
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebachmeier committed Nov 22, 2024
1 parent 5f66cca commit d8a05d5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@ pipeline {
// Clean up
sh "${ACTIVATE} && make clean"
sh "rm -rf ${CONDA_ENV_PATH}"
sh """
WORKSPACE_PARENT=$(dirname ${WORKSPACE})
find '$WORKSPACE_PARENT' -type d -name '$JOB_NAME*' -exec rm -rf {} +
"""
script {
sh """
WORKSPACE_PARENT=$(dirname ${WORKSPACE})
find '$WORKSPACE_PARENT' -type d -name '$JOB_NAME*' -exec rm -rf {} +
"""
}
}
} // post bracket
} // Python matrix bracket
Expand Down

0 comments on commit d8a05d5

Please sign in to comment.