ci: fix titan-iac and data-prepper pipeline gate publishing
This commit is contained in:
parent
3ccc2a1100
commit
592d037522
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -156,7 +156,7 @@ PY
|
|||||||
script {
|
script {
|
||||||
env.FLUX_BRANCH = sh(
|
env.FLUX_BRANCH = sh(
|
||||||
returnStdout: true,
|
returnStdout: true,
|
||||||
script: "awk '/branch:/{print $2; exit}' clusters/atlas/flux-system/gotk-sync.yaml"
|
script: "awk '/branch:/{print \\$2; exit}' clusters/atlas/flux-system/gotk-sync.yaml"
|
||||||
).trim()
|
).trim()
|
||||||
if (!env.FLUX_BRANCH) {
|
if (!env.FLUX_BRANCH) {
|
||||||
error('Flux branch not found in gotk-sync.yaml')
|
error('Flux branch not found in gotk-sync.yaml')
|
||||||
|
|||||||
@ -222,9 +222,8 @@ EOF
|
|||||||
if [ "${status}" != "ok" ]; then
|
if [ "${status}" != "ok" ]; then
|
||||||
gate_glue_check="failed"
|
gate_glue_check="failed"
|
||||||
fi
|
fi
|
||||||
if ! cat <<METRICS | curl -fsS --data-binary @- "${gateway}/metrics/job/platform-quality-ci/suite/${suite}" >/dev/null; then
|
cat <<METRICS | curl -fsS --data-binary @- "${gateway}/metrics/job/platform-quality-ci/suite/${suite}" >/dev/null || \
|
||||||
echo "warning: metrics push failed for suite=${suite}" >&2
|
echo "warning: metrics push failed for suite=${suite}" >&2
|
||||||
fi
|
|
||||||
# TYPE platform_quality_gate_runs_total counter
|
# TYPE platform_quality_gate_runs_total counter
|
||||||
platform_quality_gate_runs_total{suite="${suite}",status="ok"} ${ok_count}
|
platform_quality_gate_runs_total{suite="${suite}",status="ok"} ${ok_count}
|
||||||
platform_quality_gate_runs_total{suite="${suite}",status="failed"} ${failed_count}
|
platform_quality_gate_runs_total{suite="${suite}",status="failed"} ${failed_count}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user