Right, this needs to be documented better (and Jesse is working on it.) The input step returns a map that contains the values as a Map. So in your case
v = input(...) echo(v.projName) echo(v.projID) In your case those are both string parameters, so you get a java.lang.String object. Some other parameters return a different value, such as a boolean for a checkbox parameter. 2014-11-24 7:10 GMT-08:00 Rupali <[email protected]>: > Resending with Subject changed and mrore details on the request. > > I have below input step: > input id: '4a894d73cf15795f912d3ce0f2f54c51', message: 'DEPLOY > Parameters', ok: 'Proceed', parameters: [[$class: > 'StringParameterDefinition', defaultValue: 'SC', description: '', name: > 'projName'], [$class: 'TextParameterDefinition', defaultValue: '1234', > description: '', name: 'projID']] > > How do I read values of the parameters projName and projID in my next > steps in work-flow? > > Regards, > Rupali > On Thursday, November 20, 2014 7:35:09 PM UTC+5:30, Rupali wrote: >> >> Hi, >> >> I am trying beta version of new work-flow plugin. >> https://github.com/jenkinsci/workflow-plugin >> >> I tried some basic steps to run multiple steps one after other in a >> workflow using Groovy CPS DSL which are working fine. >> But I am unable to read job parameters in in the workflow or parameters >> selected as part of one step into another step of same workflow. >> Can you advise how to do that? >> >> Regards, >> Rupali >> > -- > 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/6c24c0e1-1147-4058-987c-4436fa716296%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/6c24c0e1-1147-4058-987c-4436fa716296%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Kohsuke Kawaguchi -- 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/CAN4CQ4yut2tKXSoKcT0uWXs38jsD8%3Dnv5geS_WkBfD%2B1FfcEQg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
