Public Access
pre-release workflow fails: find|grep|head pipeline exits non-zero under pipefail #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Detect platform step in pre-release.yml.template fails under bash -e -o pipefail because find -exec grep -l exits non-zero when grep does not match on XML files without the extension tag.
Root Cause
grep -l returns exit code 1 for non-matching files. Under find -exec this propagates as non-zero exit. Combined with bash pipefail the step is killed.
Fix
Append || true to each find|grep|head pipeline.
Discovered In
MokoWaaS repo pre-release workflow runs 9139, 9150, 9154.