Fix Jenkins pipeline parsing
Config Central CI Config Central passed all CI integrity checks.
Beffroi/config-central/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-10-16 14:49:24 +02:00
parent dca9c8ce2e
commit 439b382eaf
1 changed files with 13 additions and 13 deletions

26
Jenkinsfile vendored
View File

@ -96,19 +96,19 @@ pipeline {
echo
python3 - <<'PY'
import json
import pathlib
import json
import pathlib
paths = sorted(pathlib.Path('.').glob('schemas/*.json'))
paths += sorted(pathlib.Path('.').glob('profiles/*.json'))
paths += sorted(pathlib.Path('.').glob('machines/*.json'))
if not paths:
raise SystemExit('ERROR: no JSON contracts or manifests found.')
for path in paths:
with path.open(encoding='utf-8') as stream:
json.load(stream)
print(f'OK: {path}')
PY
paths = sorted(pathlib.Path('.').glob('schemas/*.json'))
paths += sorted(pathlib.Path('.').glob('profiles/*.json'))
paths += sorted(pathlib.Path('.').glob('machines/*.json'))
if not paths:
raise SystemExit('ERROR: no JSON contracts or manifests found.')
for path in paths:
with path.open(encoding='utf-8') as stream:
json.load(stream)
print(f'OK: {path}')
PY
'''
}
}
@ -158,7 +158,7 @@ pipeline {
echo "No merge conflict markers found."
fi
suspicious="$(git ls-files | grep -E '\.(tmp|bak|old|orig|rej)$' || true)"
suspicious="$(git ls-files | grep -E '[.](tmp|bak|old|orig|rej)$' || true)"
if [ -n "${suspicious}" ]; then
echo >&2
echo "WARNING: suspicious tracked backup/temp files:"