I am building RPMs with maven, triggered by Jenkins. Someone decided it was a good idea to have ( and ) in jenkins job names.
This breaks my rpm generation, and it's immediately evident what's wrong from Jenkins console output:
[WARNING] /var/tmp/rpm-tmp.7L55LG: line 37: syntax error near unexpected token `('
In /var/tmp/rpm-tmp.7L55LG line 37 we have
mv /var/lib/jenkins/jobs/myjenkinsjob-(WEB-SITE) \
/workspace/target/rpm/mywebsite/tmp-buildroot/* $RPM_BUILD_ROOT
(WEB-SITE) is not escaped or quoted.
The question I have is, where is this shell script generated, and how can I modify it?