Closed persiarash closed 8 years ago
Please check in the config properties file, the location for the git repo is incorrect, should end with /example/path/.git Try to add /.git to your path. Let me know if its help.
Hi @soninob, thanks for the help. Adding .git did resolve my issue, but only after I made sure to move my repo to /repo on my docker HOST. Otherwise I'd get an error when trying to start up the collector that my paths don't match the VG_REPO environment variable (which I don't set, nor can I find a reference to in the repository code).
Now the jenkins job isn't starting correctly, but that's another problem :)
Thanks again!
closing this one.
Hello,
I have setup my collector as a docker container, and have a separate docker container running bitbucket, hosting my repository, with the hook correctly configured.
When I push a change to my protected branch, the collector gets invoked and creates a new branch with my changes. However my connected Jenkins job is never executed, and my push request fails in this manner:
I'm using this script to setup my collector (showing relevant parts):
My /DATA/VG/config.properties file looks like this (showing relevant parts, other parts unchanged):
And finally my /DATA/VG/run.yml file looks like this:
As you can see, branches are automatically created in my bitbucket:
And jobs are started, but fail with GIT_FAILURE on the collector's UI:
Here is the exception in the collector's logs:
From within my collector, showing the repo and git config:
If, from within /repo on my collector I try to perform a
git checkout <X>
where<X>
is the branch the controller automatically created, I get the following error:However the same command runs just fine after I perform a
git fetch
:What am I missing here? Any help is greatly appreciated.