jenkinsci / jenkinsci/gitlab-branch-source-plugin

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

Open
#659 4 comments 0 reactions 0 assignees View on GitHub
component:gitlab-branch-source-plugin component:gitlab-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

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

```

---
Originally reported by tkleszcz, imported from: Adding gitlab MR comment from Jenkinsfile does not work


  • assignee: baymac
  • status: Open
  • priority: Major
  • component(s): gitlab-branch-source-plugin, gitlab-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 9
  • imported: 20251216-182730

Raw content of original issue

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

environment

```
Jenkins 2.190.1

GitLab Plugin 1.5.13

GitLab Branch Source Plugin 1.4.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.