jenkinsci / jenkinsci/gitlab-branch-source-plugin
[JENKINS-60530] Adding gitlab MR comment from Jenkinsfile does not work
- 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
baymac
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
addGitLabMRCommentstep 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
Assessment
This issue has not been assessed yet.