pegasus/ci: make Jenkins shell steps POSIX-compatible

This commit is contained in:
Brad Stein 2026-04-10 03:38:19 -03:00
parent a56520e446
commit 5d8528bd80

10
Jenkinsfile vendored
View File

@ -63,7 +63,7 @@ spec:
steps { steps {
container('go-tester') { container('go-tester') {
sh ''' sh '''
set -euo pipefail set -eu
mkdir -p build mkdir -p build
cd backend cd backend
go install github.com/jstemmer/go-junit-report/v2@latest go install github.com/jstemmer/go-junit-report/v2@latest
@ -88,7 +88,7 @@ spec:
steps { steps {
container('node-tester') { container('node-tester') {
sh ''' sh '''
set -euo pipefail set -eu
mkdir -p build mkdir -p build
cd frontend cd frontend
npm ci npm ci
@ -112,7 +112,7 @@ spec:
steps { steps {
container('publisher') { container('publisher') {
sh ''' sh '''
set -euo pipefail set -eu
python - <<'PY' python - <<'PY'
import json import json
from pathlib import Path from pathlib import Path
@ -154,7 +154,7 @@ PY
steps { steps {
container('publisher') { container('publisher') {
sh ''' sh '''
set -euo pipefail set -eu
python scripts/publish_test_metrics.py python scripts/publish_test_metrics.py
''' '''
} }
@ -165,7 +165,7 @@ PY
steps { steps {
container('publisher') { container('publisher') {
sh ''' sh '''
set -euo pipefail set -eu
backend_rc="$(cat build/backend-test.rc 2>/dev/null || echo 1)" backend_rc="$(cat build/backend-test.rc 2>/dev/null || echo 1)"
frontend_rc="$(cat build/frontend-test.rc 2>/dev/null || echo 1)" frontend_rc="$(cat build/frontend-test.rc 2>/dev/null || echo 1)"
if [ "${backend_rc}" -ne 0 ] || [ "${frontend_rc}" -ne 0 ]; then if [ "${backend_rc}" -ne 0 ] || [ "${frontend_rc}" -ne 0 ]; then