Building RPMS from Jenkins job

14 views
Skip to first unread message

Peter Berghold

unread,
Sep 7, 2016, 8:55:21 AM9/7/16
to jenkins...@googlegroups.com
I wonder if anybody else has had the experience that I've had.  I have several jobs running in Jenkins right now that create an RPM file and deliver it to a repository. What I've observed is the rpmbuild command can error out and the build still get marked successful. 

Anybody else running into this?  Any thoughts? 

jer...@bodycad.com

unread,
Sep 7, 2016, 1:58:34 PM9/7/16
to Jenkins Users
Check if rpmbuild return value is 0 when failing (echo the command return value to see), if so this is normal and rpmbuild is to blame for this else it's Jenkins fault. 

If it fail and still return 0 you will have to parse the console output and check for the failures strings using Console Log Parser plugin or something like it. Else you can do the same but just mark the check as temporary until the appropriate channel fix it.

Are you using something that wrap the rpmbuild command?

Jerome
Reply all
Reply to author
Forward
0 new messages