Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60062

MR Trigger by Comment not working.

    Details

    • Similar Issues:

      Description

      Hi,

      I'm using your plugin for a few months now and it works great.
      I have one problem with MR note/comment, it does not trigger the MR job.
      I added the field "Trigger build on merge request comment" but it's not doing anything.

      I can see on GitLab that webhook has been sent to Jenkins with "note hook" and on Jenkins i can see that webhook recevied. 

       

      Log from job with exaple hooks:

       

                        1. Job Log ################

      Nov 05, 2019 5:12:00 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieve
      c, o, e, l..Executor #-1 for master : executing BranchIndexing[Auto-discovery/company-example%2Fservices%2Fservices%2Fexample-company.services.claims-abroad-backend]
      Nov 05, 2019 5:12:01 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource createProbe
      Creating a probe: k8s
      Nov 05, 2019 5:12:01 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource$4 stat
      Path of file: Jenkinsfile
      Nov 05, 2019 5:12:01 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieveActions
      h, e, l..Executor #-1 for master : executing BranchIndexing[Auto-discovery/company-example%2Fservices%2Fservices%2Fexample-company.services.claims-abroad-backend]
      Nov 05, 2019 5:12:17 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabWebHookListener onMergeRequestEvent
      MR EVENT
      Nov 05, 2019 5:12:17 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabWebHookListener onMergeRequestEvent
      {
      "object_kind" : "merge_request",
      "user" :

      { "avatarUrl" : null, "createdAt" : null, "email" : null, "id" : null, "name" : "UserName", "state" : null, "username" : "UserName", "webUrl" : null, "bio" : null, "canCreateGroup" : null, "canCreateProject" : null, "colorSchemeId" : null, "confirmedAt" : null, "currentSignInAt" : null, "customAttributes" : null, "external" : null, "externUid" : null, "extraSharedRunnersMinutesLimit" : null, "identities" : null, "isAdmin" : null, "lastActivityOn" : null, "lastSignInAt" : null, "linkedin" : null, "location" : null, "organization" : null, "privateProfile" : null, "projectsLimit" : null, "provider" : null, "publicEmail" : null, "sharedRunnersMinutesLimit" : null, "skype" : null, "themeId" : null, "twitter" : null, "twoFactorEnabled" : null, "websiteUrl" : null, "skipConfirmation" : null }

      ,
      "project" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "repository" :

      { "name" : "example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "description" : "", "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "git_http_url" : null, "git_ssh_url" : null, "visibility_level" : null }

      ,
      "objectAttributes" : {
      "assigneeId" : null,
      "authorId" : 202,
      "branchName" : null,
      "createdAt" : "2019-11-05T12:58:06Z",
      "description" : "",
      "id" : 7956,
      "iid" : 349,
      "mergeCommitSha" : null,
      "mergeStatus" : "can_be_merged",
      "milestoneId" : null,
      "position" : null,
      "lockedAt" : null,
      "projectId" : null,
      "sourceBranch" : "feature/move_to_aws",
      "sourceProjectId" : 138,
      "stCommits" : null,
      "stDiffs" : null,
      "state" : "opened",
      "targetBranch" : "develop",
      "targetProjectId" : 138,
      "title" : "Feature/move to aws",
      "updatedAt" : "2019-11-05T15:12:16Z",
      "source" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "target" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "lastCommit" : {
      "id" : "66e1b79ed3b48571e5604606da208e52d5630ef6",
      "message" : "Update manifest.yaml",
      "timestamp" : "2019-11-05T12:53:33Z",
      "url" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees/commit/66e1b79ed3b48571e5604606da208e52d5630ef6",
      "author" :

      { "avatarUrl" : null, "createdAt" : null, "email" : "UserName@example-company-int.co.il", "id" : null, "name" : "UserName", "state" : null, "username" : null, "webUrl" : null }

      ,
      "added" : null,
      "modified" : null,
      "removed" : null
      },
      "workInProgress" : false,
      "url" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees/merge_requests/349",
      "action" : "reopen",
      "assignee" : null,
      "updatedById" : null,
      "mergeError" : null,
      "mergeParams" :

      { "force_remove_source_branch" : "1" }

      ,
      "mergeWhenPipelineSucceeds" : false,
      "mergeUserId" : null,
      "deletedAt" : null,
      "inProgressMergeCommitSha" : null,
      "lockVersion" : null,
      "last_editedAt" : null,
      "lastEditedById" : null,
      "headPipelineId" : 648,
      "refFetched" : null,
      "mergeIid" : null,
      "totalTimeSpent" : 0,
      "humanTotalTimeSpent" : null,
      "timeEstimate" : 0,
      "humanTimeEstimate" : null
      },
      "labels" : [ ],
      "changes" : {
      "authorId" : null,
      "createdAt" : null,
      "updatedAt" :

      { "previous" : "2019-11-05T14:57:09Z", "current" : "2019-11-05T15:12:16Z" }

      ,
      "updatedById" : null,
      "title" : null,
      "description" : null,
      "state" :

      { "previous" : "closed", "current" : "opened" }

      ,
      "milestoneId" : null,
      "labels" : null,
      "assignees" : null,
      "totalTimeSpent" :

      { "previous" : null, "current" : 0 }

      ,
      "mergeStatus" : null
      },
      "objectKind" : "merge_request"
      }
      Nov 05, 2019 5:12:17 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieve
      c, o, e, l..class io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestSCMEvent Tue Nov 05 17:12:17 IST 2019 / SCMEvent 5
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieve
      UserName -> TRUE
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource createProbe
      Creating a probe: MR-349-merge
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource$4 stat
      Path of file: Jenkinsfile-gitflow
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieveActions
      h, e, l..class io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestSCMEvent Tue Nov 05 17:12:17 IST 2019 / SCMEvent 5
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobScheduledListener onEnterWaiting
      QueueListener: WaitingGitFlow multi test » MR-349-merge
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieve
      h, l..Computer.threadPoolForRemoting 1440
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobScheduledListener lambda$onEnterWaiting$0
      Querying the current revision of merge request #349...
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobCompletedListener onStarted
      RunListener: StartedGitFlow multi test » MR-349-merge #2
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      Result: null
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource retrieve
      h, l..Executor #-1 for master : executing git-flow-multi/MR-349-merge #2
      Nov 05, 2019 5:12:19 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMNavigator visitSources
      visiting sources..
      Nov 05, 2019 5:12:20 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobScheduledListener lambda$onEnterWaiting$0
      Current revision of merge request #349 is 66e1b79ed3b48571e5604606da208e52d5630ef6
      Nov 05, 2019 5:12:20 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobScheduledListener lambda$onEnterWaiting$0
      Notifying merge request pending build git-flow-multi/MR-349-merge
      Nov 05, 2019 5:12:20 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobScheduledListener lambda$onEnterWaiting$0
      git-flow-multi/MR-349-merge Notified
      Nov 05, 2019 5:12:20 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource getTrustedRevision
      Trusted Revision: UserName -> true
      Nov 05, 2019 5:12:22 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobCheckOutListener onCheckout
      SCMListener: CheckoutGitFlow multi test » MR-349-merge #2
      Nov 05, 2019 5:12:22 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      Result: null
      Nov 05, 2019 5:12:22 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      COMMIT: 66e1b79ed3b48571e5604606da208e52d5630ef6
      Nov 05, 2019 5:12:26 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobCheckOutListener onCheckout
      SCMListener: CheckoutGitFlow multi test » MR-349-merge #2
      Nov 05, 2019 5:12:26 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      Result: null
      Nov 05, 2019 5:12:26 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      COMMIT: 66e1b79ed3b48571e5604606da208e52d5630ef6
      Nov 05, 2019 5:12:35 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier$JobCheckOutListener onCheckout
      SCMListener: CheckoutGitFlow multi test » MR-349-merge #2
      Nov 05, 2019 5:12:35 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      Result: null
      Nov 05, 2019 5:12:35 PM INFO io.jenkins.plugins.gitlabbranchsource.helpers.GitLabPipelineStatusNotifier sendNotifications
      COMMIT: 66e1b79ed3b48571e5604606da208e52d5630ef6
      Nov 05, 2019 5:12:40 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabWebHookListener onNoteEvent
      NOTE EVENT
      Nov 05, 2019 5:12:40 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabWebHookListener onNoteEvent
      {
      "object_kind" : "note",
      "user" :

      { "avatarUrl" : null, "createdAt" : null, "email" : null, "id" : null, "name" : "UserName", "state" : null, "username" : "UserName", "webUrl" : null, "bio" : null, "canCreateGroup" : null, "canCreateProject" : null, "colorSchemeId" : null, "confirmedAt" : null, "currentSignInAt" : null, "customAttributes" : null, "external" : null, "externUid" : null, "extraSharedRunnersMinutesLimit" : null, "identities" : null, "isAdmin" : null, "lastActivityOn" : null, "lastSignInAt" : null, "linkedin" : null, "location" : null, "organization" : null, "privateProfile" : null, "projectsLimit" : null, "provider" : null, "publicEmail" : null, "sharedRunnersMinutesLimit" : null, "skype" : null, "themeId" : null, "twitter" : null, "twoFactorEnabled" : null, "websiteUrl" : null, "skipConfirmation" : null }

      ,
      "projectId" : 138,
      "project" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "repository" :

      { "name" : "example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "description" : "", "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "git_http_url" : null, "git_ssh_url" : null, "visibility_level" : null }

      ,
      "objectAttributes" :

      { "id" : 19769, "note" : "rebuild", "noteableType" : "MergeRequest", "authorId" : 202, "createdAt" : "2019-11-05T15:12:39Z", "updatedAt" : "2019-11-05T15:12:39Z", "projectId" : 138, "attachment" : null, "lineCode" : null, "commitId" : null, "noteableId" : 7956, "system" : false, "stDiff" : null, "url" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees/merge_requests/349#note_19769" }

      ,
      "commit" : null,
      "issue" : null,
      "mergeRequest" : {
      "assigneeId" : null,
      "authorId" : 202,
      "branchName" : null,
      "createdAt" : "2019-11-05T12:58:06Z",
      "description" : "",
      "id" : 7956,
      "iid" : 349,
      "mergeCommitSha" : null,
      "mergeStatus" : "can_be_merged",
      "milestoneId" : null,
      "position" : null,
      "lockedAt" : null,
      "projectId" : null,
      "sourceBranch" : "feature/move_to_aws",
      "sourceProjectId" : 138,
      "stCommits" : null,
      "stDiffs" : null,
      "state" : "opened",
      "targetBranch" : "develop",
      "targetProjectId" : 138,
      "title" : "Feature/move to aws",
      "updatedAt" : "2019-11-05T15:12:16Z",
      "source" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "target" :

      { "id" : 138, "name" : "example-company.services.state-employees", "description" : "", "webUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "avatarUrl" : "http://gitlab.example-company-office.com/uploads/-/system/project/avatar/138/image_eldvFyaT.png", "gitSshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "gitHttpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git", "namespace" : "services", "visibilityLevel" : 0, "pathWithNamespace" : "company-example/services/services/example-company.services.state-employees", "defaultBranch" : "develop", "ciConfigPath" : null, "homepage" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees", "url" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "sshUrl" : "git@gitlab.example-company-office.com:company-example/services/services/example-company.services.state-employees.git", "httpUrl" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees.git" }

      ,
      "lastCommit" : {
      "id" : "66e1b79ed3b48571e5604606da208e52d5630ef6",
      "message" : "Update manifest.yaml",
      "timestamp" : "2019-11-05T12:53:33Z",
      "url" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees/commit/66e1b79ed3b48571e5604606da208e52d5630ef6",
      "author" :

      { "avatarUrl" : null, "createdAt" : null, "email" : "UserName@example-company-int.co.il", "id" : null, "name" : "UserName", "state" : null, "username" : null, "webUrl" : null }

      ,
      "added" : null,
      "modified" : null,
      "removed" : null
      },
      "workInProgress" : false,
      "url" : "http://gitlab.example-company-office.com/company-example/services/services/example-company.services.state-employees/merge_requests/349",
      "action" : null,
      "assignee" : null,
      "updatedById" : null,
      "mergeError" : null,
      "mergeParams" :

      { "force_remove_source_branch" : "1" }

      ,
      "mergeWhenPipelineSucceeds" : false,
      "mergeUserId" : null,
      "deletedAt" : null,
      "inProgressMergeCommitSha" : null,
      "lockVersion" : null,
      "last_editedAt" : null,
      "lastEditedById" : null,
      "headPipelineId" : 648,
      "refFetched" : null,
      "mergeIid" : null,
      "totalTimeSpent" : 0,
      "humanTotalTimeSpent" : null,
      "timeEstimate" : 0,
      "humanTimeEstimate" : null
      },
      "snippet" : null,
      "objectKind" : "note"
      }
      Nov 05, 2019 5:12:40 PM INFO io.jenkins.plugins.gitlabbranchsource.GitLabMergeRequestCommentTrigger isMatch
      Source Owner: company-example-Services

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              baymac Parichay Barpanda
              Reporter:
              albeldas Liran Albeldas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: