jfrog / teamcity-artifactory-plugin

TeamCity plugin that enables traceable build artifacts with Artifactory
https://www.jfrog.com/confluence/display/JFROG/TeamCity+Artifactory+Plug-in
Apache License 2.0
42 stars 48 forks source link

support buildcontext environment variables when call git #39

Closed pwielgolaski closed 6 years ago

pwielgolaski commented 6 years ago

Could we make GitCmd to pass environment from BuildContext to git command that we execute? At the moment we dont, so there is not way to pass i.e. GIT_SSH like https://stackoverflow.com/questions/14220929/git-clone-with-custom-ssh-using-git-ssh-error

Change could pass build context from here https://github.com/JFrogDev/teamcity-artifactory-plugin/blob/master/agent/src/main/java/org/jfrog/teamcity/agent/release/vcs/git/GitManager.java#L42