That's right... to define, it is something like:
parameters {
string(name: 'bld', defaultValue: 'full', description: '')
string(name: 'branch', defaultValue: 'dev', description: '')
}
you may load some properties from a file and use those variables for
defaultValue...
AM
On Thursday, 3 August 2017 04:13:54 UTC-4, Jacob Larsen wrote:
>
> Yes, kind of...
>
> The parameters are hidden in the "properties" structure. They will be
> applied to the job when it runs, meaning that the first run will not have
> these parameters defined. If you make your Jenkinsfile robust for undefined
> parameters, it should be doable, just remember that they will apply to the
> second build.
>
> /Jacob
>
> On 2017-08-03 04:03, Craig Barr wrote:
>
> In Jenkins you can select "This project is parameterized" and add
> parameters. My question is simple:
> Can this parameter metadata be populated by an alternative
> version-controlled source?
>
> For example, can I define parameter definitions in my Jenkinsfile so that
> when I click Build Now it will populate the parameters from this source?
> If this is not possible, are they any other suggestions for addressing
> such a requirement?
>
> Thanks!
>
> *Oracle Excellence Award Specialized Partner of the Year: Middleware, Asia
> Pacific
> <http://www.rubiconred.com/oracle-excellence-award-specialized-partner-of-the-year-middleware-asia-pacific/>*
>
>
>
> Rubicon Red Privacy Policy <http://www.rubiconred.com/privacy-policy-2/>
> --
> 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] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/eb7dca33-81d0-4b35-9045-0ab521327109%40googlegroups.com
>
> <https://groups.google.com/d/msgid/jenkinsci-users/eb7dca33-81d0-4b35-9045-0ab521327109%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
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/839e9a5f-acef-413a-a73b-0e72e6ace741%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.