Code Monkey home page Code Monkey logo

Comments (4)

jamesnswithers avatar jamesnswithers commented on June 26, 2024 2

Thanks both, i've used both Extended Choice Parameter and Active Choice plugin and whilst they can be tailored quite extensively they can be overly complicated especially for something as 'simple' as a multiple select.

I had a tinker on the weekend with this feature request and got something working in a similar fashion to both previously mentioned plugins where a string is passed through as a csv but i'm not sure how happy I am with it.

from rest-list-parameter-plugin.

ianwilliams1 avatar ianwilliams1 commented on June 26, 2024 1

This very much seems to tied into how the parameter is used later on, which would complicate any implementation. We have a scenario using a string build parameter where we can enter multiple values, but then we have a groovy step that iterates over them (which then calls a another job with the the specific build parameter). That would not work in other multiple choice scenarios.

The Extended Choice Parameter does support multi-select, but the Extensible Choice Parameter does not. That may be a reference point to leverage (disclaimer: I've only used extended).

ps: OP's requested behavior also seems to be similar to how JIRA search selector options works, so may be an overall Jenkins implementation limitation.

from rest-list-parameter-plugin.

h1dden-da3m0n avatar h1dden-da3m0n commented on June 26, 2024

Hi James!

First of all, thank you for the feature request!
I currently cant say for sure if Jenkins offers the right Form control to accomplish this, but I'll have a look once I have the time. (currently a bit time limited)
More importantly though I fear that the way how Jenkins handles build parameter values could turn out as a major blocker for this one unfortunately. (Just a heads up, unless you happen to know of a multi select parameter plugin besides the uni-choise plugin)

With all that said, I'll investigate how and if this could be realized as soon as I have the time.

NOTE:
If you or any passing by developer wants to work on this, please feel welcome to do so!
Just leave a note that you are working on it in that case.

from rest-list-parameter-plugin.

h1dden-da3m0n avatar h1dden-da3m0n commented on June 26, 2024

I thought about this a bit, the only way a multi select would be usable is if you have a script within your pipeline to iterate over the selected values and act according to what values are in that list then.
I am not saying that it is impossible, but since the Jenkins UI does not provide such a control natively (at least as far as I can tell) I have to admin that this might be out of my reach ☚ī¸

/reason: I am no front-end developer, I don't really like JavaScript and I am pretty lost without a framework like Angular or Vue in the Web world (PHP would also be a possibility).
The Extended Choice Parameter seems to provide the here requested functionality via JavaScript if I interpreted that right, same goes for the Active Choice plugin which can also offer a multi select parameter.

Finally, I will keep this open and see what I can do to maybe still realize the functionality on my own, but in the mean time give I will add the help wanted label. Thank you for your understanding!

from rest-list-parameter-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.