1

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?

1
  • I'm guessing in the rpmbuild source code. But being a noob, perhaps someone could point out where the source code is? rpm.org (?) - but where?
    – Jepper
    Aug 26, 2014 at 15:40

1 Answer 1

0

See the %install section of the spec file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .