Ticket #2323 (closed support-request: worksforme)
Building RPMs
| Reported by: | saqub01 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | undecided |
| Version: | 0.8.6p1 | Keywords: | RPM |
| Cc: |
Description
I am a new user of BuildBot 0.8.6. Currently I am trying to build RPMs using the rpmbuild buildbot module and on successful build move the RPMs to the test repository.
At the moment the only code I have relating to RPMs is:
from buildbot.steps.package.rpm.rpmbuild import RpmBuild?
factory_S.addStep(Compile(command="NO_RPM=1 make all_name"))
Note the NO_RPM=1 environment variable passed to make. This is a new feature that prevents the building of RPMs from the name2 scripts. This is to allow Buildbot to take over the RPM build process itself, so that i can pass on extra information, and make clearer decisions on the success of the RPM build.
I would appreciate any guidance on how to proceed.
Change History
comment:2 in reply to: ↑ 1 Changed 12 months ago by saqub01
Replying to dustin:
Well, what do you want to do next?
There's nothing wrong with letting your makefile build the RPMs - no reason that Buildbot would be better at it.
OK thanks, I've just taken over this task and like I said I am completely unfamiliar with BuildBot, so if I want my makefile to build the RPMs do I take the following code out?
from buildbot.steps.package.rpm.rpmbuild import RpmBuild?
factory_S.addStep(Compile(command="NO_RPM=1 make all_name"))
and replace factory_S.addStep(Compile(command="NO_RPM=1 make all_name")) with
factory_S.addStep(Compile(command=["make", "build"])) would that work?
comment:4 in reply to: ↑ 3 Changed 12 months ago by saqub01
Replying to dustin:
assuming 'make build' builds RPMs, yes.
No, it doesn't seem to work. Would it not be easier to use Buildbot to build the RPMs?
comment:5 follow-up: ↓ 6 Changed 12 months ago by dustin
Well, I figure you know your build system better than Buildbot. "Easier" is really in the eye of the person doing the work :)
comment:6 in reply to: ↑ 5 Changed 12 months ago by saqub01
Replying to dustin:
Well, I figure you know your build system better than Buildbot. "Easier" is really in the eye of the person doing the work :)
I am new to the system I am using and it has been suggested I use BuildBot to take over the process, so I really am a bit lost! I have tried googling a step by step guide but it just gives a description/source code for the buildbot.steps.package.rpm.rpmbuild import class.
comment:7 Changed 12 months ago by dustin
The steps are documented here:
http://buildbot.net/buildbot/docs/latest/full.html#rpm-related-steps
but you won't find a step-by-step guide for most things Buildbot - it turns out everyone's steps are different.
You may have better luck asking more specific questions on the mailing list (buildbot-devel@…), rather than generic requests for help here in Trac.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Well, what do you want to do next?
There's nothing wrong with letting your makefile build the RPMs - no reason that Buildbot would be better at it.