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

Adding gitlab MR comment from Jenkinsfile does not work

XMLWordPrintable

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

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

              Created:
              Updated: