GItlab: has there any way we can select the variable values as drop down menu

Viewed 2024

In Gitlab ci We have declared our variables like below

 USER_NAME:
    value: ""  
    description: "Enter Username"
  File_Name:
    description: "Enter the file name"

It only give a text box where We can enter the value.

Can I make a drop down select box is there any option available to make it a select box.Then we can select the value from drop down.

3 Answers

No it is not possible. What we ended up doing, if we want to have a better configurable way, was using the gitlab pages with a form, which will use the API or a POST to create a new pipeline. This way we are quiet flexible with the options to provide to the users.

Related