Skip to content

Commit 82896fa

Browse files
committed
ansible: stop promotion if missing assets
1 parent ec6faa4 commit 82896fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ansible/www-standalone/tools/promote/check_assets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ async function execute () {
188188
caution = true
189189
console.log(` \u001b[33m\u001b[1m⚠\u001b[22m\u001b[39m The following assets are expected for ${line} but are currently missing from staging:`)
190190
notInActual.forEach((a) => console.log(` • ${a}`))
191+
console.log('Canceling the promotion')
192+
process.exit(1)
191193
}
192194

193195
// bogus unexpected files found in staging, not good

ansible/www-standalone/tools/promote/promote_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ srcdir=$release_srcdir
2222
dstdir=$release_dstdir
2323
dirmatch=$release_dirmatch
2424

25-
node --no-warnings /home/staging/tools/promote/check_assets.js $srcdir/$2 $dstdir/$2
25+
node --no-warnings /home/staging/tools/promote/check_assets.js $srcdir/$2 $dstdir/$2 || exit 1
2626

2727
relative_srcdir=${srcdir/$staging_rootdir/"$site/"}
2828
relative_dstdir=${dstdir/$dist_rootdir/"$site/"}

0 commit comments

Comments
 (0)