Skip to content

Commit

Permalink
Add messages to catch blocks in post steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykk committed Dec 19, 2024
1 parent bdafd76 commit 60d603f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .ci/jenkins/build-int-test/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ pipeline {
post {
always {
script {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE', message: 'Docker image cleanup failed') {
echo "Cleaning up Docker images from local host"
sh ".ci/scripts/util/cleanup.sh ${DOCKER_TAG}"
}
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE', message: 'Conda cleanup failed') {
echo "Removing int test conda environment"
sh "/var/lib/jenkins/conda_installs/${RUN_ID}/miniconda3/bin/conda env remove --yes --name int_test_env"
sh "/var/lib/jenkins/conda_installs/${RUN_ID}/miniconda3/bin/conda clean -ay"
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/build-test-deploy/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ pipeline {
post {
always {
script {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE', message: 'Docker image cleanup failed') {
echo "Cleaning up Docker images from local host"
sh ".ci/scripts/util/cleanup.sh ${DOCKER_TAG}"
}
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError (buildResult: 'FAILURE', stageResult: 'FAILURE', message: 'Conda cleanup failed') {
echo "Removing Sphinx build environment"
sh "/var/lib/jenkins/conda_installs/${RUN_ID}/miniconda3/bin/conda env remove --yes --name sphinx_env"
sh "/var/lib/jenkins/conda_installs/${RUN_ID}/miniconda3/bin/conda clean -ay"
Expand Down

0 comments on commit 60d603f

Please sign in to comment.