git - GitLab CI Webhooks and Commit Hashes -
git - GitLab CI Webhooks and Commit Hashes -
i in next situation: have 2 gitlab repositories master
, slave
both need combined in order run test.
at moment i'm taking next approach: create ci project master
pulls slave
build step , runs test.
now want trigger build whenever pushes slave
well. appropriate way seems via webhooks, added next webhook slave
:
https://ci.foo.com/projects/1/build?token=19c72c17f0e69&ref=master
now, when build triggered slave
next build error:
cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-1 && git reset --hard && git clean -fdx && git remote set-url origin https://gitlab-ci-token:19c72c17f0e69@git.foo.com/slave.git && git fetch origin cd /home/gitlab_ci_runner/gitlab-ci-runner/tmp/builds/project-1 && git reset --hard && git checkout cc807f3023451165cd73a258b4e2b01edbc954a4 head @ b38bd72 fixed bar fatal: reference not tree: cc807f3023451165cd73a258b4e2b01edbc954a4
the problem cc807f3023451165cd73a258b4e2b01edbc954a4
lastly commit of slave
, , not of master
, checking out fails.
does have thought how solve this, or know solution other using webhooks situation?
git webhooks gitlab-ci
Comments
Post a Comment