Skip to content

Commit

Permalink
Add a test to check for github orgs expected
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 Nov 8, 2023
1 parent 6745895 commit bea2524
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 @@ -28,6 +28,15 @@ if [[ -n ${abichecker_main} ]]; then
exit 1
fi

# Check authorized/expected github organizations
non_github_orgs=$(grep -R "http[s]://github.com/" -- *.xml | grep -E -v '/gazebosim/|/gazebo-tooling/|/gazebo-release/')
if [[ -n ${non_github_orgs} ]]; then
echo "Unexpected github orgs in XML files:"
echo "${non_github_orgs}"
echo "either update this test or fix the DSL code"
exit 1
fi

# Filter out the previous auto jobs
filtered_dir=$(mktemp -d)
cp -- *-abichecker-*.xml "${filtered_dir}"
Expand Down

0 comments on commit bea2524

Please sign in to comment.