Merge to another branch failing GitLabCI

86 views
Skip to first unread message

Marcus Meier

unread,
Oct 28, 2016, 2:43:52 PM10/28/16
to GitLab
I'm trying to implement the Git DMZ flow for my team in GitlabCI. But I'm running into trouble with one of the Jobs.

I've written this job:
dmz_merge:    script:         - git checkout master        - git pull
- git merge origin/dmz --ff - git push origin master stage: deploy only: - dmz
But I'm getting the below failure. Is there a step I'm missing to get the push to work?

Checking out 5f7dfe5b as dmz...

$ git checkout master
$ git pull
$ git merge origin/dmz --ff
Updating 005fbd1..5f7dfe5
Fast-forward
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
$ git push origin master
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://gitlab-ci-token:xxxxxxxxxx...@gitlab.mydomain.com/group/project.git/'
ERROR: Build failed: exit status 128

Marcus Meier

unread,
Oct 28, 2016, 2:45:28 PM10/28/16
to GitLab
Forgot to link the Git DMZ workflow I'm trying to implement: https://gist.github.com/djspiewak/9f2f91085607a4859a66


On Friday, October 28, 2016 at 1:43:52 PM UTC-5, Marcus Meier wrote:
I'm trying to implement the Git DMZ flow for my team in GitlabCI. But I'm running into trouble with one of the Jobs.

I've written this job:
dmz_merge:    script:         - git checkout master        - git pull
- git merge origin/dmz --ff - git push origin master stage: deploy only: - dmz
But I'm getting the below failure. Is there a step I'm missing to get the push to work?

Checking out 5f7dfe5b as dmz...

$ git checkout master
$ git pull
$ git merge origin/dmz --ff
Updating 005fbd1..5f7dfe5
Fast-forward
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
$ git push origin master
remote: HTTP Basic: Access denied
Reply all
Reply to author
Forward
0 new messages