Is there any way to inject passwords and login credentials to build in GOCD environment variables ??

62 views
Skip to first unread message

Subhash Gajare

unread,
May 11, 2017, 5:30:03 AM5/11/17
to go-cd
There are many ways in Jenkins which allows to inject login credentials and passwords to build as environment variables.

Even the passwords can be masked so that these passwords are not visible.

Is there any similar way in go-cd to inject the passwords ,  files and configurations in GOCD which should make the build configurations easy.
Example of Jenkins is attached.
InjectPasswords.PNG

Ashwanth Kumar

unread,
May 11, 2017, 5:40:48 AM5/11/17
to go...@googlegroups.com
Yes there's a way to do that in GoCD. Please consider using "Secure Variables" section of environment variables. PFA the screenshot of how it looks in GoCD. The good part (with regard to security) is, you can only reset the value but not see the existing value. Also the environment variable is saved in an encrypted form in the config.xml.

Inline image 1

Hope this helps! 


--
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 go-cd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ashwanth Kumar / ashwanthkumar.in

Subhash Gajare

unread,
Jun 16, 2017, 4:05:35 AM6/16/17
to go-cd, ashwan...@googlemail.com
Thanks a lot Ashwanth Kumar,

Yes it helps. It would the way you suggested.
Thanks a lot.

--Subhash


On Thursday, May 11, 2017 at 11:40:48 AM UTC+2, Ashwanth Kumar wrote:
Yes there's a way to do that in GoCD. Please consider using "Secure Variables" section of environment variables. PFA the screenshot of how it looks in GoCD. The good part (with regard to security) is, you can only reset the value but not see the existing value. Also the environment variable is saved in an encrypted form in the config.xml.

Inline image 1

Hope this helps! 

On Thu, May 11, 2017 at 3:00 PM, Subhash Gajare <gsub...@gmail.com> wrote:
There are many ways in Jenkins which allows to inject login credentials and passwords to build as environment variables.

Even the passwords can be masked so that these passwords are not visible.

Is there any similar way in go-cd to inject the passwords ,  files and configurations in GOCD which should make the build configurations easy.
Example of Jenkins is attached.

--
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 go-cd+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages