How to pass parameter in rtc plugin Jenkins
How to pass parameter in rtc plugin Jenkins
I am using RTC plugin for get source from IBM Rational Teamconcert in Jenkins, but how can I pass the parameter that I declared using This project is parameterized plugin like the image below
I used %variable_name%
but not successful.
%variable_name%
1 Answer
1
You can see an example of a String parameter used in the Job Configuration section of this plugin.
However, make sure your Jenkins is running on Windows if you want to use %A_VARIABLE%
syntax.
If it runs on Linux, that would be $A_VARIABLE
.
%A_VARIABLE%
$A_VARIABLE
@taibc Strange, considering stackoverflow.com/a/33279636/6309. Do you see that error during the configuration of the plugin? Or at runtime, when trying to enter a value for that parameter?
– VonC
Aug 23 at 6:15
I got this error at runtime. I can use %variable% at another places, like properties fields user.admin=%PARAM_WAS_USERADMIN% pass.admin=%PARAM_WAS_PASSADMIN%
– taibc
Aug 23 at 6:23
@taibc Then it seems to be a bug in github.com/jenkinsci/teamconcert-plugin source code, where the project name does not seem to be properly fetched (meaning does not take into account the case where it is an environment variable)
– VonC
Aug 23 at 6:59
Thanks @VonC, what should I do ? I want to pass all parameters at "click build" step
– taibc
Aug 23 at 7:02
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
My Jenkins is running on Windows. I also tried $A_VARIABLE, but not successful. Error detail is: A project area with name "%PARAM_PROJECTNAME_TEAMCONCERT%" cannot be found.
– taibc
Aug 23 at 5:13