Hello Pankaj, AFAIK GoCD doesn't support environment variables in the material PATH. You can however use Parameters though, but I wouldn't recommend it for storing credentials like in your example. Parameters are stored in plain text in config.xml.
GoCD internally uses the `git` or `git.exe` (depending on the OS) that's available in PATH where GoCD Server or Agent is running. So you can configure your SSH keys like you would normally do for running git clone from your terminal. If you're looking to see how you can generate SSH Keys for the agent / server, this page <https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/> has a good resource on how to generate new SSH Keys. If you already have an SSH Key configured on both your Server and Agent, if you give a SSH Git URL it should work out of the box on GoCD. On Thu, Aug 16, 2018 at 9:06 AM pankaj singh <[email protected]> wrote: > Can anyone help me with go cd server configuration with GIT. I am looking > for configuration with SSH key as Jenkins provides. > (+) Does go cd support environment variable in MaterialType as GIT.. > https://${GIT_USER}:${ > GIT_PASSWORD}@github.com/AmarisAI/document-upload.git > <http://[email protected]/AmarisAI/document-upload.git> > > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- Ashwanth Kumar / ashwanthkumar.in -- 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]. For more options, visit https://groups.google.com/d/optout.
