allow JS image failure to be debugged
refs DE-541 Change-Id: I2392649a7f1144dd0a17df85a619c27928055ca8 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/258574 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com> Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
This commit is contained in:
parent
f24aca4293
commit
9d703a261a
|
@ -653,6 +653,17 @@ pipeline {
|
|||
} catch(e) {
|
||||
jsReady = false
|
||||
|
||||
if(configuration.isChangeMerged()) {
|
||||
// DEBUG: Sometimes a node can get polluted and produce an error like
|
||||
// The git source https://github.com/rails-api/active_model_serializers.git is not yet checked out
|
||||
// Take the last successful layer and upload it so it can be debugged.
|
||||
|
||||
sh """
|
||||
docker tag \$(docker images | awk '{print \$3}' | awk 'NR==2') $KARMA_RUNNER_IMAGE-failed
|
||||
./build/new-jenkins/docker-with-flakey-network-protection.sh push $KARMA_RUNNER_IMAGE-failed
|
||||
"""
|
||||
}
|
||||
|
||||
throw e
|
||||
}
|
||||
})
|
||||
|
|
|
@ -38,7 +38,7 @@ fi
|
|||
|
||||
tag_many $KARMA_BUILDER_SELECTED_TAG local/karma-builder ${KARMA_BUILDER_TAGS[SAVE_TAG]}
|
||||
|
||||
DOCKER_BUILDKIT=1 docker build \
|
||||
docker build \
|
||||
--build-arg PATCHSET_TAG="$PATCHSET_TAG" \
|
||||
--build-arg RAILS_LOAD_ALL_LOCALES="$RAILS_LOAD_ALL_LOCALES" \
|
||||
--file Dockerfile.jenkins.karma-runner \
|
||||
|
|
Loading…
Reference in New Issue