Skip to content

Commit

Permalink
Add a check to avoid future problems
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed May 21, 2024
1 parent 69382dd commit 9dfb41b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jenkins-scripts/dsl/dsl_checks.bash
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ if [[ -n ${non_github_orgs} ]]; then
exit 1
fi

# Check that whiteListedTargetBranches are non empty
# see https://github.com/gazebo-tooling/release-tools/pull/1144
empty_branches_on_github_triggered=$(grep '<whiteListTargetBranches></whiteListTargetBranches>' -- *.xml)
if [[ -n ${empty_branches_on_github_triggered} ]]; then
echo "Unexpected whiteListTargetBranches without values. It will trigger all branches:"
echo "${empty_branches_on_github_triggered}"
exit 1
fi

# re-enable after https://github.com/gazebo-tooling/release-tools/issues/1095

# Filter out the previous auto jobs
Expand Down

0 comments on commit 9dfb41b

Please sign in to comment.