Not sure, I was following the example detailed here, https://medium.com/@rijoalvi/jenkins-dynamic-parameters-using-extended-choice-parameter-plugin-and-groovy-1a6ffc41063f
But my data model isn't as complex, so I think the way I am doing it - I need to change how to get the data I want. I just want a list of the tags to return in the choice parameter. On Thu, Oct 15, 2020 at 9:32 PM Jan Monterrubio <[email protected]> wrote: > I’ve used the extended choice parameter to pull a list of files from a > directory in github and display a set of checkboxes. I’ll remember to grab > you a snippet tomorrow during work! > > > > On Thu, Oct 15, 2020 at 17:01 Kari Cowan <[email protected]> wrote: > >> I am working on a Jenkins job to rollback a Docker container to the >> previous version. This on its own is pretty straight-forward, but what I >> want to do is get my list of available tags from the registry. As opposed >> to going to the registry-page and seeing what's available, then copy/paste >> a value into a form on Jenkins, I'd like to automate that step somehow - by >> grabbing the data from the registry page and displaying the options in a >> choice parameter in Jenkins on the build screen. >> >> For example, call in the registry url by ip, example, >> 10.11.12.199:5000/v2/some-api/tags/list might display some JSON like: >> {"name":"some-api","tags":["qa_api-11","qa_api-12","qa_api-13"]} >> >> What's the best tool for this? I'm no Groovy expert but would the >> Extensible Choice Parameter plugin coupled with a Groovy script be useful >> here? I'm not really clued up yet if this is possible in Groovy, but am >> open to suggestions. Does anyone have any tips on that or other methods >> that are better? >> >> >> >> -- >> 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/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%40mail.gmail.com >> <https://groups.google.com/d/msgid/jenkinsci-users/CAE7w4hg_RpwfVYAh7m9FLc1oxCPZQuqwd-eMpj6kFgBdMsJoOA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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/CADgiF9KZ9pd-knThXn4L9uLr5dzG2YKXip_X_RKEABWw_zarvg%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KZ9pd-knThXn4L9uLr5dzG2YKXip_X_RKEABWw_zarvg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CAE7w4hjAa685u0OXq5k%3DG3U3UJ3vLmbb0Ve-oyDKj4DtMALO2A%40mail.gmail.com.
