Adding gitlab MR comment from Jenkinsfile does not work

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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'
            }
          }
        }
      }
      

            Assignee:
            Parichay Barpanda
            Reporter:
            Tadeusz Kleszcz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: