Fix Jenkins pipeline parsing
Config Central CI Config Central passed all CI integrity checks.
Beffroi/config-central/pipeline/head This commit looks good
Details
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:
parent
dca9c8ce2e
commit
439b382eaf
|
|
@ -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:"
|
||||
|
|
|
|||
Loading…
Reference in New Issue