Search code examples
jenkinsextended-choice-parameter

Want to use selected values from extended choice parameter in Jenkins using multi-level parameter type in bash


Inputs from the user

I want to use the seleted values one by one in bash script. Also want to save these values in a file. How can I do this??


Solution

  • In order to get there, try to write a Jenkins Pipeline. You need to use those parameters in your Jenkinsfile. Please check this answer to see how to use the extended choice parameters in your jenkinsfile. You are able to pass those parameters to your bash script inside your Jenkinsfile. Also, using bash script, you can insert them in a file as well.

    Also, check this answer as well. It gives some insight into how this works.