I am struggling to set up an input step in a scripted Jenkins pipeline that will let me as the user to input a string.
Scenario: I am building a Docker image. I want to ask the user what tags to tag the image with once it's built. I want the user to supply a comma separated list like so: latest,0.0.4,some-tag-name
All I have right now is an input asking the user if the core image should be built:
def buildCoreImage = input( message: 'Build Core Image?', ok: 'Yes', parameters: [ booleanParam(defaultValue: true, description: 'Push the button to build core image.',name: 'Yes?') ] ) echo "Build core?:" + buildCoreImage
So in theory it should be as easy as changing the booleanParam to a stringParam, BUT the documentation does not have it: Jenkins - Pipeline: Input Step
Thanks for your time!