Dear All,
Looking for some help understanding how to assign credentials for the Gerrit Code Review Plugin to work.
Aside from that specific plugin, we're able to build and get verification tags just fine. The git successfully checks out from gerrit using the credentials defined for the checkout SCM in a declarative pipeline, and Jenkins successfully posts the normal build verification.
When attempting to usecommands from Gerrit Code Review Plugin "gerritComment" or "
"Gerrit Review requires authentication, however there are no credentials defined or are empty."
gerritReview labels
", we get the following error message.
It's unclear for me how the Gerrit Code Review Plugin accepts credentials. I haven't been able to find out any documentation about a special credentials id variable, or example for the plugin needing declaration of credentials.
I would be grateful for any help in understanding this problem.
Best Regards,
John Shield
On 26 May 2020, at 17:10, John Shield <john.k...@gmail.com> wrote:Dear All,
Looking for some help understanding how to assign credentials for the Gerrit Code Review Plugin to work.
Aside from that specific plugin, we're able to build and get verification tags just fine. The git successfully checks out from gerrit using the credentials defined for the checkout SCM in a declarative pipeline, and Jenkins successfully posts the normal build verification.
When attempting to usecommands from Gerrit Code Review Plugin "gerritComment" or "
"Gerrit Review requires authentication, however there are no credentials defined or are empty."
gerritReview labels
", we get the following error message.
It's unclear for me how the Gerrit Code Review Plugin accepts credentials.
I haven't been able to find out any documentation about a special credentials id variable, or example for the plugin needing declaration of credentials.
I would be grateful for any help in understanding this problem.
Best Regards,
John Shield--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/56812aa6-41f6-4434-837e-7ff54a4a276f%40googlegroups.com.
On 26 May 2020, at 17:10, John Shield <john....@gmail.com> wrote:Dear All,
Looking for some help understanding how to assign credentials for the Gerrit Code Review Plugin to work.
Aside from that specific plugin, we're able to build and get verification tags just fine. The git successfully checks out from gerrit using the credentials defined for the checkout SCM in a declarative pipeline, and Jenkins successfully posts the normal build verification.
When attempting to usecommands from Gerrit Code Review Plugin "gerritComment" or "
"Gerrit Review requires authentication, however there are no credentials defined or are empty."
gerritReview labels
", we get the following error message.
It's unclear for me how the Gerrit Code Review Plugin accepts credentials.You need to define the SCM credentials in the Gerrit SCM source of the pipeline, otherwise Jenkins won’t know what’s the credentials-id to use.Please note that Gerrit repos have two URLs: one anonymous and one for authenticated access (prefixed by ‘/a/‘). You need to use the authenticated one for being able to post reviews.I haven't been able to find out any documentation about a special credentials id variable, or example for the plugin needing declaration of credentials.
I would be grateful for any help in understanding this problem.Let me know if the above guidance is enough.HTH
Luca.
Best Regards,
John Shield--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
On 27 May 2020, at 00:34, John Shield <john.k...@gmail.com> wrote:Thanks Luca,I had a look at the SCM credentials we're using for the pipeline and the "Repository URL" in the SCM. As far as I can tell it is setup correctly. The URL is the one for the authenticated access, and the credentials provided are being used by the SCM checkout.
The plugin still seems to think there are no credentials.
I've included a screenshot of the SCM definition.
<SCM Settings.png>
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/994bd305-6a04-4c1b-bc53-9ac9bc234b7f%40googlegroups.com.
<SCM Settings.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/994bd305-6a04-4c1b-bc53-9ac9bc234b7f%40googlegroups.com.
<SCM Settings.png>