Checkbox and dropdown in Prompted Variables
It would be nice to have variables with promts, that have checkbox (bool) and dropdowns, like in teamcity, to make promotion more flexible, and UI more accurate.
For example, we are using that to provide checkbox "deploy offline" if we need to apply large database modifications - it instructs our scripts to take all web sites offline and waits for all database transactions to be completed.
Support for control-types for prompted-variables was added in Octopus 2018.6: https://github.com/OctopusDeploy/Issues/issues/4531
Mark Horninger commented
This is already available for custom step templates. It would be great to have in prompted variables as well.
Mark Horninger commented
This would be fantastic. Is there any traction on this issue at this point?
Jim Hsiao commented
Any update on this, Octopus?
Futher more, it will be amazing if we can have a list of checkboxes to supply a list of values to the deployment.
Joe Pemberton commented
This would be awesome to have! We have a master deployment script that feeds a number of things into Octo.exe to create/deploy new environments from scratch. It would be fantastic to have some of these values in drop downs instead of typing(fat-fingering) them in every time.
Agree will be helpful for avoiding manual mistakes. I am searching for this feature
Could really use this feature! Have a project which requires users to submit boolean values and enter the name of a WebService which makes the whole thing very error prone - I want to present the users with a drop down list of possible webservice values and a checkbox for True/False options. I've played with tenants but it doesn't really work in my situation as there are too many environment/webservice combinations to be displayed sensibly in the UI amongst other issues.
khanh tran commented
Seriously, this would help out a lot.
We need those checkbox and dropdown
I agree with Trevor - This topic is a few years old now, and I can see in Step Templates that you can create variables using checkboxes and drop-down lists, but these are only available to set when including the template is a deployment step.
We have a number of variables that are prompted for at deployment time, but the user has to type in 'True' or 'False' for boolena values rather than ticking or unticking a check box, and instead of providing a drop down with defined values, the user has to type in a value which must then be checked for validity within the script. Really need this feature!!!
Craig Shea commented
This would be a tremendous improvement in the product and is a feature I have used from TeamCtiy myself and would love to see in OD.
Trevor Crosse commented
It appears that the framework for this has been added with "Typed Parameters for Step Templates"
It would be very helpful if these same typed parameters were available for Prompted Variables as well.
Use Regular Expressions to Constrain prompted input.
Prior to deployment a user should be able to select an input, instead of keying it in. Thus allowing the user to see all the possible options and preventing misspellings.
Bonus: Allow the list to be dynamically populated via PowerShell script by just returning an Array of Strings.
Example: You could send a PowerShell script to an IIS server to see the sites it contains and allow the user to select the site they want to deploy to.
Tags: Drop-down, combo-box , dropdown, combobox, choice