Re: Setting a new property from Groovy Script to pass to the next job

2016-09-01 Thread Ioannis Moutsatsos
I would write the parameters out to a properties file and have an EnvInject 
plugin step 
re-inject them as build properties before your Step 2 script uses them.

On Thursday, September 1, 2016 at 6:29:22 PM UTC-4, Mathew Joseph wrote:
>
> Hi All,
>
>My job involves 2 build steps 
>
> Step 1 : Groovy script to retrieve a list of files and populate a 
> parameter or environment variable say TEST_FILES
> Step 2 : VSTEST job that can read TEST_FILES and use that a parameter
>
> I have obtained the list of files, but what are the options available for 
> setting parameters 
>
> I tried using
> def pa = new ParametersAction([new StringParameterValue('TEST_FILE', 
> dllFiles)]);  
>
> and then try something like
>
> // Add variable to current jobs environment variables.
> Thread.currentThread().executable.addAction(pa) 
> build.addAction(pa) 
>
>
> But ParametersAction is not available for a script running on the Node.
>
> Any ideas?
>
> Thanks in advance,
> Mathew
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d05515f2-f69c-4cc3-a7e8-b50b7b0713ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Setting a new property from Groovy Script to pass to the next job

2016-09-01 Thread Mathew Joseph
Hi All,

   My job involves 2 build steps 

Step 1 : Groovy script to retrieve a list of files and populate a parameter 
or environment variable say TEST_FILES
Step 2 : VSTEST job that can read TEST_FILES and use that a parameter

I have obtained the list of files, but what are the options available for 
setting parameters 

I tried using
def pa = new ParametersAction([new StringParameterValue('TEST_FILE', 
dllFiles)]);  

and then try something like

// Add variable to current jobs environment variables.
Thread.currentThread().executable.addAction(pa) 
build.addAction(pa) 


But ParametersAction is not available for a script running on the Node.

Any ideas?

Thanks in advance,
Mathew

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9b8065b6-b0f2-42f6-acf2-3134fb756617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.