1

Build not triggered since upgrade & migration

Hi, I upgraded to 8.8.3 the dockerized CE installation we have, and then migrated it to a new VM. The process was : docker-compose stop , rsync the docker volumes, docker-compose up -d on new server.

Since that time, when I do push commits, the CI are no more launched (gitlab-ci module), but I can run them manually from the pipelines tab.

When I do a push, I receive a hook error :

[tutu] git push origin  master                                                                                                                                                                                        9:26:07  ☁  master ☂ ✭ 𝝙
Décompte des objets: 6, fait.
Delta compression using up to 4 threads.
Compression des objets: 100% (5/5), fait.
Écriture des objets: 100% (6/6), 528 bytes | 0 bytes/s, fait.
Total 6 (delta 4), reused 0 (delta 0)
remote: hooks/post-receive:27: syntax error, unexpected tIDENTIFIER,  expecting keyword_do or '{' or '('
remote: exec git push --quiet github &
remote:                             ^
To ssh://[email protected]:2222/MorningChecks/tutu.git

I don't know if this is linked. I don't know if I miss something from new feature usage or something, if this is the case, please apologize. Thank you

2 Answers 2

1

OK, found.... One colleague of me added a commented line in the global hooks of project, don't know precisely why. The hook was failing and this is this precise hook that launches the builds.

So this has nothing to do with migration, upgrade, PEBKAC !

Sign up to request clarification or add additional context in comments.

2 Comments

I'm having a similar problem. Where exactly do you define global hooks, I googled but I could not find anything
Here : /opt/gitlab/embedded/service/gitlab-shell/hooks
1

The same behaviour, can also happen when using needs in your .gitlab-ci.yml. If you are using two times the same jobs in your needs, GitLab Runner will fail silently to trigger the CI.

Example:

nightly:bin:
  stage: deploy
  needs: [ "buildA", "buildA" ]
  script:
    - echo "do stuff"

That's something!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.