starting a build forge job from rational team concert
I have successfully created a Rational Build Forge build engine which can communicate with the Rational Build Forge server itself (the test connection succeeds). I have also successfully created a Build Forge Project build definition which can retrieve the relevant build forge projects to use (and one has been selected and the build definition saved).
Here's what works.... I can start the build forge project used in the build definition (see above paragraph) from within Build Forge (via the Build Forge web console). The project runs successfully and even reports status in Rational Team Concert (in other words when I "show build results" in Rational Team Concert, I can see the progress reported from Build Forge--and the logs show up too).
But what does not work.... When I try to start the same Build Forge project from the Build Forge Project build definition in Rational Team Concert. It fails immediately with the following error in the logs:
com.ibm.team.build.common.TeamBuildException: Error sending request "Create build for project 3528572b0c671000afe2476f0c830c83" to Build Forge server at "10.128.225.171:3966" for build engine id "jtcxlbfgap01.bfserver": CRRBF0102I: API: Permission denied: RunBuild.
From what I can tell the user that is setup in the Rational Build Forge build engine has the correct setup in Build Forge to be able to execute builds. That user is a service account specifically created just for the purpose of performing these builds. The user seems to be a part of all the necessary groups needed to perform builds in Build Forge.
Based on what I have described and the error log outlined, does anyone have advice or an explanation that would help me resolve this issue...?
Cheers
|
3 answers
The service user is missing the "Execute Build" permission. Add that to one of your groups that the service user belongs to.
~Spencer Comments
sam detweiler
commented Mar 25 '14, 12:15 p.m.
in the RTC project permissions In this case its the BF permission that is missing, although you should also make sure you have that permission in RTC as well.
~Spencer
Claudio Neves
commented Aug 01 '14, 4:22 p.m.
Is there a document that lists all the permissions needed for Build Forge user used on the RTC->BF integration? |
I don't think there is such a document, but generally you need execute and read permissions for the build.
|
This is what we have discovered in our protracted investigation into this issue. There cannot be multiple accounts for "the" user (credentials) that is authorized to connect to Build Forge (from RTC).
I'm not really sure how to explain it other than as follows: We have multiple projects (that operate independent of one another). Naturally we setup "service" accounts for each project area that would be localized for use in each respective project area. That unique service account per project was intended to be the means to start projects/jobs from RTC that are in Build Forge. That ended up being the issue. We could only have one service account that is now used across all project areas. So now we have one generic "service" account that can be used by all project areas to initiate or run a project in Build Forge (from RTC).
It seems like such a strange issue, and without reasonable explanation really.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.