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

0 views
Skip to first unread message

tadeuszkleszcz@gmail.com (JIRA)

unread,
Dec 18, 2019, 12:24:04 PM12/18/19
to jenkinsc...@googlegroups.com
Tadeusz Kleszcz created an issue
 
Jenkins / Bug JENKINS-60530
Adding gitlab MR comment from Jenkinsfile does not work
Issue Type: Bug Bug
Assignee: Parichay Barpanda
Components: gitlab-branch-source-plugin, gitlab-plugin
Created: 2019-12-18 17:23
Environment: Jenkins 2.190.1
GitLab Plugin 1.5.13
GitLab Branch Source Plugin 1.4.1
Priority: Critical Critical
Reporter: Tadeusz Kleszcz

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'
      }
    }
  }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

parichay.barpanda@gmail.com (JIRA)

unread,
Mar 25, 2020, 6:41:03 PM3/25/20
to jenkinsc...@googlegroups.com
Parichay Barpanda commented on Bug JENKINS-60530
 
Re: Adding gitlab MR comment from Jenkinsfile does not work

This pipeline step is not implemented in our plugin, it is a feature of gitlab-plugin. Is this feature important to your use? Can you share your use case?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

tadeuszkleszcz@gmail.com (JIRA)

unread,
Mar 26, 2020, 12:29:03 PM3/26/20
to jenkinsc...@googlegroups.com

tadeuszkleszcz@gmail.com (JIRA)

unread,
Mar 26, 2020, 12:29:03 PM3/26/20
to jenkinsc...@googlegroups.com
Tadeusz Kleszcz commented on Bug JENKINS-60530
 
Re: Adding gitlab MR comment from Jenkinsfile does not work

It is important but not critical.

Our use case:

We are calculating code coverage during Jenkins build and also the difference between code coverage in source and target branch. Then we are using addGitLabMRComment to add a comment to the GitLab with code coverage statistics. It allows us to easily view of how code coverage will be affected during code review.

Some time ago we have switched to Gitlab Branch Source plugin for easier job maintenance in Jenkins and from this time it stopped working.

andrejcamilo@gmail.com (JIRA)

unread,
Apr 23, 2020, 9:45:04 AM4/23/20
to jenkinsc...@googlegroups.com

I think it would be a great if we could use all gitlab-plugin actions with gitlab-branch-source jobs. Would this be difficult?

(I also need the addGitLabMRComment above all other actions from gitlab-plugin)

Reply all
Reply to author
Forward
0 new messages