teamconcert toolkit installed on different s.o.
Good morning,
I work with jenkins 2.190.1 installed on a windows server (master) and the jenkins agent (slave) is installed on a Linux workstation
Both have installed the RTC 6.0.6 toolkits
The Team Concert Plugin version i am using is 2.2.0
I created a freejob that downloads a specific stream from the RTC server in a specific path on slave.
This freejob must be run on slave.
When I run it on the slave, the job fails because the toolkit path is set in windows style (i.e. c:\another_dir\toolkit_dir) instead of /another_dir/toolkit_dir/
So to check for my configuration errors, I created two freejobs that download a workspace associated with stream.
The first one runs on the master (windows) and ends successfully,
The second runs on the slave agent (linux) and ends successfully.
Both toolkits are properly installed
I found something similar problem on the net (issues.jenkins.io with id JENKINS-32996) but no solution has been provided.
How can I solve this problem?
Accepted answer
Hi Giovanni,
In Jenkins, the toolkit definition is valid only in the master. For agents, instead of creating another toolkit definition separately, you should override the tool's path in the agent's properties. This way, Team Concert plugin can resolve the correct toolkit depending on where it runs. If you defined a toolkit for agent, it is no longer valid in the master. Hence it is better to follow the override approach.
To override the tool definition for the agent, click Manage Jenkins->Manage Nodes and Clouds. Click the agent of your choice and click Configure. On the right, scroll down to find Tool location checkbox. Once you check it, select the toolkit that you defined earlier and provide the path in the Linux agent.
In stream configuration, not all of the communication with RTC happens in the agent, even if you selected the job to run in an agent. Some part of the communication will happen on the master and hence a valid toolkit on master is required. That explains the error message you observed in the build's console output.
Comments
Lakshmi Narasimhan T V
JAZZ DEVELOPER Feb 25 '21, 12:23 a.m.Giovanni Maruffa
Feb 25 '21, 3:59 a.m.Hi Lakshmi,
1. TRUE
2. FALSE
Giovanni Maruffa
Feb 25 '21, 9:38 a.m.Thank uou so much! Problem solved!!!
1 vote