# Pastebin 9TE30oiG - builder: name: distribution-check-verify-groupid builders: - shell: | echo "These are allowed projects: $ALLOW_PROJECTS" echo "These are distribution pulled projects:" EXIT_CODE="0" for PROJECT in `ls /tmp/r/org/opendaylight`; do echo "checking $PROJECT" if [[ "$ALLOW_PROJECTS" != *"$PROJECT"* ]]; then echo "ERROR: Not allowed project $PROJECT pulled" EXIT_CODE="1" fi done exit $EXIT_CODE echo "verify project groupId" mkdir -p /tmp/t/org/opendaylight/{gerrit-project} mv /tmp/n/org/opendaylight/{gerrit-project}/* /tmp/t/org/opendaylight/{gerrit-project}/ test -z "`find /tmp/n/ -type f`" || ( echo "ERROR: Mismatched groupId detected (see above)." && false ) rm -rf /tmp/n mv /tmp/t /tmp/n This returns error: /home/user/git/builder/jjb/integration/distribution/distribution-macros.yaml:3:3: While expanding macro 'distribution-check-wipe' - builder: ^ /home/user/git/builder/jjb/integration/distribution/distribution-macros.yaml:8:11: While formatting string 'echo "wipe r: the local Maven repository"\nrm -rfv /tmp/r\necho "wipe n: the fake ...': Missing parameter: 'ALLOW_PROJECTS' echo "wipe r: the local Maven repository" ^