Skip to content

Commit

Permalink
Enable snapshot image creation for PUSH and TIMER
Browse files Browse the repository at this point in the history
To ensure that the snapshot image creation happens more regularly,
we ensure that the preparation for it happens for both a PUSH and
a TIMER trigger.

This will ensure that the images are updated on a daily basis,
not just when a new patch merges.

JIRA: RE-2278
  • Loading branch information
Jesse Pretorius committed Feb 27, 2019
1 parent 6cd89ce commit e11f62a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gating/check/post_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ else
fi
echo "#### END DSTAT CHART GENERATION ###"

# Only enable snapshot when triggered by a commit push.
# This is to enable image updates whenever a PR is merged, but not before
if [[ "${RE_JOB_TRIGGER:-USER}" == "PUSH" ]] && [[ ${RE_JOB_STATUS:-SUCCESS} == "SUCCESS" ]]; then
# Only enable snapshot when triggered by a commit push or a periodic job,
# and only when the job succeeded. This is to enable snapshot image updates
# based on committed code that works.
if [[ "${RE_JOB_STATUS:-UNKNOWN}" == "SUCCESS" && ( "${RE_JOB_TRIGGER:-USER}" == "PUSH" || "${RE_JOB_TRIGGER:-USER}" == "TIMER" ) ]]; then
echo "### BEGIN SNAPSHOT PREP ###"
mkdir -p /gating/thaw

Expand Down

0 comments on commit e11f62a

Please sign in to comment.