tomzo / gocd-yaml-config-plugin

Plugin to declare GoCD pipelines and environments configuration in YAML
Apache License 2.0
199 stars 93 forks source link

Private Github Repository material failing - Not recognizing username nor encrypted password attributes #141

Open maufonfa opened 4 years ago

maufonfa commented 4 years ago

I have configured the material via yaml file with username and encrypted_password (encrypted via API as suggested) but receiving the following error:

[go] Start to prepare pipeline/build on agent [/var/lib/go-agent] [go] Start to update materials.

[go] Start updating files at revision XXX from https://github.repo.com/repo.git [GIT] Fetching changes STDERR: fatal: could not read Username for 'https://github.repo.com': No such device or address git fetch failed for [https://github.repo.com/repo.git]

If I use https://username:password@url format it works but will make my password visible in the gocd.yaml, and I'm storing my files in a Github repo :(

My GOCD version is 20.1.0 and plugin version is 0.12.0 which came bundled with GOCD.

tomzo commented 4 years ago

@maufonfa are you still experiencing this issue? It would nice to see your yaml