Here is how I do it for 2 jobs with 3 parameters each. Strange that the 
"snippet generator" does not work, at least it does for me on jenkins 
1.620. Are you sure you point to the correct parametised job ?

String outputDirTimestamp = new 
SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(new Date());
// "env.mySoftVersion" has previously been set in env
// "packagingGitBranch" is set elsewhere

parallel(win: {
    build job: 'packaging_win', parameters: [[$class: 
'StringParameterValue', name: 'outputDirTimestamp', value: 
outputDirTimestamp], [$class: 'StringParameterValue', name: 
'branchToPackage', value: packagingGitBranch], [$class: 
'StringParameterValue', name: 'mySoft.version', value: env.mySoftVersion]]
}, lin: {
    build job: 'packaging_linux', parameters: [[$class: 
'StringParameterValue', name: 'outputDirTimestamp', value: 
outputDirTimestamp], [$class: 'StringParameterValue', name: 
'branchToPackage', value: packagingGitBranch], [$class: 
'StringParameterValue', name: 'mySoft.version', value: env.mySoftVersion]]
})


On Monday, August 24, 2015 at 4:52:36 PM UTC+2, Ohad Basan wrote:
>
> Hello
>
> I am trying to use the workflow plugin to trigger a build with parameters
> I am using the snippet generator but it ignores the parameter and doesn't 
> display it
> can anyone plz give me an example for how to use the workflow "build" step 
> to trigger a parameterized job?
>
> thanks!
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd18c0d6-4754-4128-ae81-d353c09bec2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to