How to pass shell script value to trigger remote parameterized job

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to pass shell script value to trigger remote parameterized job

sureshconfi12345
Hi All,

Am using 2 jenkins machines names are test1 and test2 

test1 will trigger test2 by using remote trigger parameter job         

In test1 jenkins 

I have shell script which gives one value the same i want to use in as remote parameters 

I have a remote trigger parameterized job which contains parameters 
    
Question 

How can i use shell script variable and its value to pass in the remote parameters 

I tried 

Inject environment variables to the build process

At properties content which is working fine but that is only simple value

At script content i executed value=`pwd` the same am giving in remote parameters like below

value1=${value}

In test2 jenkins am passing as string parameter as value1

The out put is ${value } but am expecting exact value of pwd














--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cffc9ef9-baf1-49bd-892c-88249555cc9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.