Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Team Concert Jenkins Plugin/RTC 4.0.5 - Cannot get Jenkins tutorials to work

Hello,

I am working through the following Jenkins tutorials using Windows 7/RTC 4.0.5

https://jazz.net/library/article/840

https://jazz.net/wiki/bin/view/Main/JazzScmWithJenkinsPlugin

and I am unable to get either to work.  I have been to the simplest HelloWorld example setup twice.  When I activate submit build, RTC build is pending and Jenkins is never triggered.  Has anyone else encountered this problem?

0 votes

Comments

So I have gotten Nick Edgar's example documented here: https://jazz.net/wiki/bin/view/Main/JazzScmWithJenkinsPlugin to run from the Jenkins side - that is "Build with Parameters" from within Jenkins runs and reports back to RTC.  But requesting the build from within RTC does not trigger Jenkins yet everything on the RTC side checks out.  The engine connection to Jenkins is successful and the build definition retrieves all of the available jobs.  There is no authentication so that is not the problem. 

Hi David, is there anything relevant in the server-side log for RTC (ccm.log)?

Request build puts the build into the pending state and nothing from that action is written tot the ccm.log file



2 answers

Permanent link
 I have been working this through an IBM PMR (I do not remember the number off hand and will post it later
But is far what we have determined is if Jenkins is executed via a command line against the jenkins.war file
the examples work.  When jenkins.war gets dropped into the webapps folder of Tomcat the examples do not
work.  More investigation is required.  I will post more details later.

0 votes

Comments

When running jenkins from the command line as:

java -jar jenkins.war --httpPort=7080 >logs\jenkins.log 2>&1
The examples work but when the jenkins.war file is dropped into a Tomcat webapps folder RTC does not trigger jenkins.  The build remains indefinitely in a pending state.
The PMR on this is 38655.

what port is tomcat running on?  7080? 

the examples depend on that 7080 config.



Permanent link
According to IBM support, Specer Murata provided the answer in a similar post:

https://jazz.net/forum/questions/129417/rtc-jenkins-integration-error-while-triggering-the-build

but I have not yet tried it.  The answer from Spencer was

"There is a defect where RTC used to allow automatic address forwarding in previous releases so something like localhost:8080/hudson would redirect to localhost:8080/hudson/ but does not anymore, so the trailing slash has to be explicit in 4.0.3.  The authenticating user in Hudson also must be allowed to update the build job as we require a build parameter be added to RTC enabled Hudson jobs.  So I would recommend granting those permissions or trying the integration with an Hudson admin user first so it can setup the parameter and then change it to the build user."

Go figure..  I will try it later.

0 votes

Comments

yes, mine was just stalled (on 4.0.5) because of the missing trailing slash..
and I had to make an admin user on Jenkins

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121
× 1,202
× 562
× 151

Question asked: Mar 05 '14, 3:20 p.m.

Question was seen: 6,607 times

Last updated: Mar 08 '14, 6:27 p.m.

Confirmation Cancel Confirm