> On 26 May 2020, at 17:10, John Shield <[email protected]> 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 use commands from Gerrit Code Review Plugin 
> "gerritComment" or "gerritReview labels", we get the following error message.
> "Gerrit Review requires authentication, however there are no credentials 
> defined or are empty."
> 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/56812aa6-41f6-4434-837e-7ff54a4a276f%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/56812aa6-41f6-4434-837e-7ff54a4a276f%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/420D5252-7F21-4189-8726-38B0A8A9202D%40gmail.com.

Reply via email to