Skip to content
Snippets Groups Projects
Commit 88784e62 authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Merge branch 'latest' into 'master'

Regen repos when needed, including when latest is updated

See merge request !20
parents a3507375 17dcef4c
No related branches found
No related tags found
1 merge request!20Regen repos when needed, including when latest is updated
Pipeline #2509011 passed
......@@ -193,10 +193,11 @@ for REPO in $SIG_REPOS; do
done
done
echo "Sending Daily diff"
/root/sendemail.sh $DEST "daily"
# Point .s8-latest to today's snapshot
cd $DESTINATION
ln -vfsT $SNAPS_DIR/$TODAY ".${RELEASE}-latest"
/root/regen-repos.sh "c${RELEASE}-latest-.*"
echo "Sending Daily diff"
/root/sendemail.sh $DEST "daily"
......@@ -119,14 +119,14 @@ if [[ "$TODAY_KERNELFAM" != "$LAST_POINT_KERNELFAM" ]]; then
fi
fi
/root/regen-repos.sh
if [[ $SHORTEST_TEST == 0 ]]; then
/root/regen-repos.sh "c${RELEASE}-${LN_TESTING}-.*"
/root/sendemail.sh $TMPDIR $LN_TESTING
/root/aims.sh $SNAPS_DIR/$TODAY $LN_TESTING
fi
if [[ $SHORTEST_PROD == 0 ]]; then
/root/regen-repos.sh "c${RELEASE}-.*" ".*8s-build"
/root/sendemail.sh $TMPDIR
/root/aims.sh $SNAPS_DIR/$DELAYED
fi
......@@ -2,10 +2,15 @@
source /root/common.sh
REGEX="c${RELEASE}-.*"
REPO_REGEX="$1"
TAG_REGEX="$2"
#REGEX="c${RELEASE}-.*"
REGEN_JOB="prod_koji-regenrepo"
PAYLOAD="{ \"REPO_REGEX\": \"${REGEX}\", \"TAG_REGEX\": \".*8s-build\", \"FORCE\": \"false\" }"
PAYLOAD="{"
[[ -n "$REPO_REGEX" ]] && PAYLOAD="$PAYLOAD \"REPO_REGEX\": \"${REPO_REGEX}\","
[[ -n "$TAG_REGEX" ]] && PAYLOAD="$PAYLOAD \"TAG_REGEX\": \"${TAG_REGEX}\","
PAYLOAD="$PAYLOAD \"FORCE\": \"false\" }"
DATA="{ \"Meta\": {\"PARENT_JOB\": \"stream8_snapshots\"}, \"Payload\": \"`echo -n "$PAYLOAD" | base64 -w 0`\"}"
echo "Triggering Nomad job with payload: ${PAYLOAD}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment