Gitlab-plugin: Jenkins Pipeline Project Build Triggers reset

Created on 9 Dec 2016  路  2Comments  路  Source: jenkinsci/gitlab-plugin

Before submitting an issue to I have first:

  • [X] read the documentation on the homepage
  • [X] searched for similar already existing issue

Issue

The Build Triggers:

  • Build when a change is pushed to GitLab. GitLab CI Service URL: https://jenkinsserver/project/jenkins
    get reset after a push to gitlab repository and a run of the the pipeline Jenkinsfile

Context

  • Gitlab plugin version: 1.4.3
  • Gitlab version: 8.14.3-EE
  • Jenkins version: 2.19.4

Logs & Traces

Dec 09, 2016 1:34:09 AM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/jenkins
Dec 09, 2016 1:34:09 AM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle
jenkins triggered for push.
Dec 09, 2016 1:34:09 AM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic
WebHook called with url: /project/jenkins
Dec 09, 2016 1:34:09 AM INFO com.dabsquared.gitlabjenkins.trigger.handler.AbstractWebHookTriggerHandler handle
jenkins triggered for push.
Dec 09, 2016 1:34:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:22 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:23 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:24 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:25 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:25 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:26 AM INFO com.dabsquared.gitlabjenkins.util.CommitStatusUpdater retrieveGitlabProjectIds
Retrieving gitlab project ids
Dec 09, 2016 1:34:27 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
jenkins #4 completed: SUCCESS

Problem description

I've configured a pipeline job on jenkins following the instruction for the gitlab-plugin.
I've configured the Build Triggers and git integration:
immagine
immagine

After I push a new build on GitLab (configured with Jenkins CI integration) Jenkins run the build correctly and after the start of the run If i edit the configuration I get the Build Triggers reset so It will not work for a second push or merge or other operation:
immagine

Most helpful comment

How did you resolve this problem?
How did you prevent it from resetting?

All 2 comments

After some testing I discovered where the problem was:
I was reusing a jenkinsfile from a multibranch pipeline that has the property at the start to set the gitlabconnection as explained in the readme of the gitlab plugin and it was resetting my normal pipeline job.

properties([[$class: 'GitLabConnectionProperty', gitLabConnection: '

How did you resolve this problem?
How did you prevent it from resetting?

Was this page helpful?
0 / 5 - 0 ratings