Along these same lines, I'd like to have a "Choice" parameter where the
user can select a build type. I'll then use the produced environment
variable ($TYPE) in the build steps. In the Post steps, I'd like to deploy
the right type of build via an API token. The API token will be different
depending on which of the types were selected. I'm imagining something like:
IF $TYPE==BETA
THEN TOKEN=12345
That way I could use $TOKEN in my post-build deploy step.
Can anyone point me in the right direction on this?
Thanks,
Curtis
On Thu, Jul 6, 2017 at 2:03 PM, David Karr
wrote:
> On Thu, Jul 6, 2017 at 10:23 AM, Kai wrote:
> > Hi,
> >
> > We are trying to setup a Jenkins pipeline and have a Deploy step to
> deploy a
> > specific version of the application.
> >
> > The pipeline job will be invoked programmatically by another system.
> >
> > Is there a way to pass in parameters programmatically to the pipeline
> job so
> > it knows which version to deploy?
>
> This should be a good summary of your options:
> https://wiki.jenkins.io/display/JENKINS/Parameterized+Build .
>
> >
> > 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 jenkinsci-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/jenkinsci-users/
> c2c2f562-acce-475c-8a5f-eb0544118113%40googlegroups.com.
> > 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/CAA5t8VpAmUbM90g6ujikFMfg_C_SGLE4ZgHwzCXDaUySMmXeng%
> 40mail.gmail.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAGkg-e%3D3YnaABRbHy4BQrWzF%3DgE1sUgNsBSBXbSpiMFiOdxe6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.