Thanks Chad. 
We are trying to achieve this using  GoCD parameters and templates but not 
yet successful. We will try the workaround provided by you too.

On Sunday, June 19, 2022 at 7:57:32 PM UTC+5:30 Chad Wilson wrote:

> I don't think there is a clean way to achieve this to my knowledge.
>
> The closest you could achieve that I can think of is some custom 
> automation that 
>
>    - periodically queries your database to get the allowed values you are 
>    referring to
>    - updates a pipeline's definition (via a configuration repository, or 
>    via the GoCD API) to 
>    - pre-populate an environment variable with a dummy value to give the 
>       user a hint as to the valid values, e.g VAL-A|VAL-B|VALC
>       - at the same time automatically updates the pipeline's definition 
>       to add a first "script" task that validates the environment variable is 
> set 
>       to one of the allowed options
>    
> If you need to use GoCD parameters and templates rather than environment 
> variables, something similar could be done using those, perhaps.
>
> -Chad
>
> On Fri, Jun 17, 2022 at 8:57 PM 'Sarmistha Bhuyan' via go-cd <
> [email protected]> wrote:
>
>> I have a need to show user list of values from database and user can 
>> select any value as parameter value and trigger the pipeline. Is there a 
>> way to achieve this? 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "go-cd" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/go-cd/75b6157e-f945-4592-bfd4-a9d9121fdc99n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/go-cd/75b6157e-f945-4592-bfd4-a9d9121fdc99n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/5e046aaf-4799-40b1-8800-9c935064232bn%40googlegroups.com.

Reply via email to