You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the pullRequest.comment("comment") method to add a comment on the GitHub PR page. From the Jenkins side I am only calling this method once during the build, but on the GitHub side it is adding same comment two times. I have added the output on the "Actual Results" section.
I have also printed the comment id from the Jenkins, and compared the comment id from the GitHub page. In all cases the second comment's id is showing in the Jenkins log, but no info is available about the first comment present in the GitHub side.
Jenkins and plugins versions report
I am using the
pullRequest.comment("comment")
method to add a comment on the GitHub PR page. From the Jenkins side I am only calling this method once during the build, but on the GitHub side it is adding same comment two times. I have added the output on the "Actual Results" section.I have also printed the comment id from the Jenkins, and compared the comment id from the GitHub page. In all cases the second comment's id is showing in the Jenkins log, but no info is available about the first comment present in the GitHub side.
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Amazon Linux 2. No agents are involved. Running builds on the controller itself.
Reproduction steps
def comment = pullRequest.comment("comment")
method to add the comment.Expected Results
Only one comment should be added on the GitHub page when I used the
pullRequest.comment
method only once.Actual Results
Two duplicate comments are added in the GitHub PR page. Please find below,
first comment
second comment
Anything else?
No response
The text was updated successfully, but these errors were encountered: