Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: git-plugin
-
Labels:None
-
Environment:Windows Server 2008 R2, SCM Manager
-
Similar Issues:
Description
When notifying about a repo update we use the url: http://jenkins/git/notifyCommit?url=http://repo/url
This doesn't trigger polling for builds that have a http user/password defined in the repository url (http://user:pass@repo/url).
Calling the trigger url with the user/password works correctly. Would be nice if they could be omitted though.
As a workaround you can use parameters when defining repository url (http://${GIT_USERNAME}:${GIT_PASSWORD}@repo/url).
Then you can use the same url for the git hook, just you need to encode $ and {} (if you use linux/bash).
curl http://jenkins/git/notifyCommit?url=http://\$\\{GIT_USERNAME\\}:\$\\{GIT_PASSWORD\\}@repo/url
This way you will avoid to expose credentials.