User input

Is there a way to take user input for a pipeline, in the form of a string or a list, or a boolean value? The value of the input can then be used in the pipeline as a variable. I am coming from a Jenkins and Github Actions background where it was very easy to do it, but I have not been able to find anything similar in Circle CI.

Hi @pinaki-m,

Thank you for sharing your question on our forum.

The way to do something similar on CircleCI would be via pipeline parameters:

https://circleci.com/docs/2.0/pipeline-variables/#pipeline-parameters-in-configuration

Once parameters are defined in your config.yml file, you can trigger new builds by passing them in via our API, or using the Trigger Pipeline button available at the top of the pipelines page for a project (button is disabled until a specific branch is selected).

Following that, the parameters will be referenceable in your config.yml with syntax like this:

<<pipeline.parameters.parametername>>

Please let me know if this addresses your concerns, and please feel free to ask if you have any follow up questions.

Thank you!

1 Like

Thanks for your help with this. I was able to get this working.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.