Yes, exactly, I don't think pausing the job to get the info from the user is a good way of doing it.

If it isn't possible to pass an extra parameter/property from the Jenkins UI to the script on job launch and initialization, then I should move onto a different approach using some other logical means.

However the "parameterized build" option in the job config dialog gave me hope that such a non-user-defined parameter was feasible.

Is that incorrect?


Qiang Ma wrote on 26/08/18 15:20:
Hmm, JOB_NAME would be auto generated based on the branch name.

User input would make the job pause, so that doesn't seem a good option , 
either.

Then what else can be different to make the same job performing different deployment?  Branch name?


On Sun, Aug 26, 2018 at 7:15 AM Adam Hardy <[email protected] <mailto:[email protected]>> wrote:

  I can't check until I get in on Tuesday but this is a multi-branch pipeline job.

    Won't env.JOB_NAME either be the approximately the name of the repo so I 
know
    which app it builds, or the name of the branch in that repo?

    If it's the former, I guess I could suffix the name with the environment and
    then parse it in the script, but that's not really something I'd like.


    --
    You received this message because you are subscribed to a topic in the
    Google Groups "Jenkins Users" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/jenkinsci-users/4jayfI5ijBQ/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to
    [email protected]
    <mailto:jenkinsci-users%[email protected]>.
    To view this discussion on the web visit
  https://groups.google.com/d/msgid/jenkinsci-users/74a0e435-3ac7-e14e-0d0b-7858080a3de8%40cyberspaceroad.com.
    For more options, visit https://groups.google.com/d/optout.



--

Regards,
Qiang

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/4jayfI5ijBQ/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAHf%3Dn4yNObgShHRmO%2B6_c_Zr-jtnKApK-T%3DWLu%2B-cd4s4z3d8g%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-users/CAHf%3Dn4yNObgShHRmO%2B6_c_Zr-jtnKApK-T%3DWLu%2B-cd4s4z3d8g%40mail.gmail.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/9ff2aa3f-ff41-5ec8-33c6-a202163459d1%40cyberspaceroad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to