diff --git a/misc/actions/pinouts-create.sh b/misc/actions/pinouts-create.sh index fef7255434..8dee0f7caa 100755 --- a/misc/actions/pinouts-create.sh +++ b/misc/actions/pinouts-create.sh @@ -21,6 +21,10 @@ for c in $CONNECTORS; do NAME=$(basename $c .yaml) echo "${I_AM} NAME "$NAME mkdir -p $DIR + if [ "$(yqdir/yq e '.info.id' $c)" == "null" ]; then + echo "${I_AM} Missing id field in info section of $c" + exit 1 + fi if [ -f $DIR/index.html ]; then bash misc/pinout-gen/append.sh "$(yqdir/yq -j e $c)" $DIR/index.html else diff --git a/misc/jenkins/generate_pinouts/gen_upload_pinouts.sh b/misc/jenkins/generate_pinouts/gen_upload_pinouts.sh index 2334d6fdd8..97b843ca71 100644 --- a/misc/jenkins/generate_pinouts/gen_upload_pinouts.sh +++ b/misc/jenkins/generate_pinouts/gen_upload_pinouts.sh @@ -1,6 +1,9 @@ #!/bin/bash misc/actions/pinouts-create.sh +if [ $? -ne 0 ]; then + exit 1 +fi if [ -n "$RUSEFI_SSH_SERVER" ]; then echo "Uploading Pinouts..."