Remove extra jenkinsfile concerns

This commit is contained in:
Jake Runyan 2026-06-21 20:28:07 -07:00
parent 0e8548649d
commit 9f0a963f37

13
Jenkinsfile vendored
View File

@ -11,6 +11,7 @@ pipeline {
options { options {
timestamps() timestamps()
disableConcurrentBuilds() disableConcurrentBuilds()
timeout(time: 30, unit: 'MINUTES')
} }
stages { stages {
@ -23,12 +24,12 @@ pipeline {
stage('Preflight') { stage('Preflight') {
steps { steps {
sh ''' sh '''
set -e set -eu
[ -n "$DISCORD_WEBHOOK" ] || { echo "ERROR: required secret DISCORD_WEBHOOK is missing"; exit 1; } : "${DISCORD_WEBHOOK:?required credential discord-pws-builds-channel-webhook is missing}"
[ -f docker-compose.yml ] || { echo "ERROR: docker-compose.yml not found at repo root"; exit 1; } for f in Dockerfile package.json docker-compose.yml content/_config.json; do
[ -f Dockerfile ] || { echo "ERROR: Dockerfile not found at repo root"; exit 1; } [ -f "$f" ] || { echo "ERROR: required file '$f' not found at repo root" >&2; exit 1; }
[ -f package.json ] || { echo "ERROR: package.json not found at repo root"; exit 1; } done
node -e "JSON.parse(require('fs').readFileSync('content/_config.json','utf8'))" || { echo "ERROR: content/_config.json is missing or malformed"; exit 1; } docker compose config -q
''' '''
} }
} }