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

Adding gitlab MR comment from Jenkinsfile does not work

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.190.1
      GitLab Plugin 1.5.13
      GitLab Branch Source Plugin 1.4.1

      Adding comment from Jenkinsfile during building Merge Request in Gitlab does not work.

      Jenkins job is created using Gitlab Branch Source plugin. The job type is Gitlab Group.

      When

      addGitLabMRComment

      step is run gitlab MR comment is not added as expected and there is no error in build log.

      Sample Jenkinsfile to replicate this problem:

      pipeline {
        agent any
        stages {
          stage('Build') {
            steps {
              addGitLabMRComment comment: 'Test comment'
            }
          }
        }
      }
      

          [JENKINS-60530] Adding gitlab MR comment from Jenkinsfile does not work

          Tadeusz Kleszcz created issue -
          Tadeusz Kleszcz made changes -
          Priority Original: Critical [ 2 ] New: Major [ 3 ]
          Damien Duportal made changes -
          Comment [ This is a common error when you do not update to the new version so update to the latest version to fix this problem. [mapquest directions|https://mapquestdirections.org] ]
          Mark Waite made changes -
          Comment [ Try adding some debug statements to your Jenkinsfile to see if the step is being executed at all. For example, you could add a println statement to output a message to the console. 

          [mapquest driving directions|https://mapquestdrivingdirections.app/] ]
          Mark Waite made changes -
          Comment [ Spam comment

            ]
          Mark Waite made changes -
          Comment [ Spam comment ]

            baymac Parichay Barpanda
            tkleszcz Tadeusz Kleszcz
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: