I have 2 jenkins jobs and have to pass couple of parameters from Job1 to Devtest Test case. I tried <jvmarg value="-DmyProperty=str_nbr"/> as below in build xml , but did not work out.
All installs are local. I have used "jvmarg" tag inside junitlisa tag. so that, value assigned to jvmarg will be considered as a jvm property and you can directly use it as DevTest property.
Ex:
<junitlisa toDir="${testReportDir}"
outputtoformatters="false"
test="Tests/DevTest_config_info.tst"
stagingDoc="StagingDocs/1User0Think_RunContinuously.stg"
user="admin"
password="admin">
<jvmarg value="-DmyProperty=MyProperty"/> </junitlisa>
But this did not work.
All supported releases and platforms of DevTest.
N/A
In Jenkins, modify the Jenkins build steps to update the project config file with the properties between jobs.
Use the Create/Update Text File plugin to do that:
FilePath: ${Workspace}Configs/project.config
Enable " Create at Workspace"
Text File Content (say for example)
store=${str_nbr} // these are parameters in jenkins {str_nbr}
date=${Sales_Date}
Select the : Append to end of the file option.
This functionality modifies the project.config ( or the active config) and these properties {{store}} and {{date}} will be appended to the config file.