Gerrit review authentication error(Gerrit code review plugin)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gerrit review authentication error(Gerrit code review plugin)

Ali Raza-2
 Hi
I am using the Gerrit trigger plugin with Jenkins which is working fine but along with it i am also using the Gerrit Code Review plugin. I am calling 'gerrit review' command inside my pipeline script but getting an error 'Gerrit Review requires authentication, however there are no credentials defined or are empty'

I am not sure from where the Gerrit review is getting the credentials. On the other hand, the Gerrit trigger plugin is getting triggered and executing the build process but when it reaches the 'gerrit review' command it is having an authentication error.

I am using the Git/https inside my scm settings.

My scm settings are following
 gerrit settings.jpgcm credentials. 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41f480a4-3c6b-4715-974e-43c1c2925c39n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Fwd: Gerrit review authentication error(Gerrit code review plugin)

Luca Milanesio


Begin forwarded message:

From: Ali Raza <[hidden email]>
Subject: Gerrit review authentication error(Gerrit code review plugin)
Date: 12 March 2021 at 13:04:54 GMT
To: Jenkins Users <[hidden email]>
Reply-To: [hidden email]

 Hi
I am using the Gerrit trigger plugin with Jenkins which is working fine but along with it i am also using the Gerrit Code Review plugin. I am calling 'gerrit review' command inside my pipeline script but getting an error 'Gerrit Review requires authentication, however there are no credentials defined or are empty'

I am not sure from where the Gerrit review is getting the credentials. On the other hand, the Gerrit trigger plugin is getting triggered and executing the build process but when it reaches the 'gerrit review' command it is having an authentication error.

I am using the Git/https inside my scm settings.

The Gerrit Code Review plugin is designed to extract the credentials from the Gerrit SCM source.
In your case, for some reasons, your setup isn’t able to add the Gerrit SCM source to the list, even though the plugin is installed.

The result is that when it tries to obtain the credentials, it fails and therefore the read operations are still possible but NOT the write operations (like the review feedback).

Luca.


My scm settings are following
 gerrit settings.jpgcm credentials. 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41f480a4-3c6b-4715-974e-43c1c2925c39n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/35CB7D7F-A6FE-43F4-A61C-9F4795E6BA56%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Gerrit review authentication error(Gerrit code review plugin)

Ali Raza-2
I am pulling the Jenkins script from another source which is also not using any SSH inside it. Can it be the problem?

I am currently relying on Jenkin job's console output. Can I find any detailed log somewhere for Gerrit code review plugin which might give some more details?

Can you suggest any other way to debug the issue to find the exact root cause?

gerrit_pipeline.jpg

On Friday, 12 March 2021 at 15:10:03 UTC+1 [hidden email] wrote:


Begin forwarded message:

From: Ali Raza <[hidden email]>
Subject: Gerrit review authentication error(Gerrit code review plugin)
Date: 12 March 2021 at 13:04:54 GMT
To: Jenkins Users <[hidden email]>
Reply-To: [hidden email]

 Hi
I am using the Gerrit trigger plugin with Jenkins which is working fine but along with it i am also using the Gerrit Code Review plugin. I am calling 'gerrit review' command inside my pipeline script but getting an error 'Gerrit Review requires authentication, however there are no credentials defined or are empty'

I am not sure from where the Gerrit review is getting the credentials. On the other hand, the Gerrit trigger plugin is getting triggered and executing the build process but when it reaches the 'gerrit review' command it is having an authentication error.

I am using the Git/https inside my scm settings.

The Gerrit Code Review plugin is designed to extract the credentials from the Gerrit SCM source.
In your case, for some reasons, your setup isn’t able to add the Gerrit SCM source to the list, even though the plugin is installed.

The result is that when it tries to obtain the credentials, it fails and therefore the read operations are still possible but NOT the write operations (like the review feedback).

Luca.


My scm settings are following
 gerrit settings.jpgcm credentials. 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41f480a4-3c6b-4715-974e-43c1c2925c39n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/830e5879-cdc0-40a1-9542-00b12b73aef0n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Gerrit review authentication error(Gerrit code review plugin)

Luca Milanesio


On 12 Mar 2021, at 14:22, Ali Raza <[hidden email]> wrote:

I am pulling the Jenkins script from another source which is also not using any SSH inside it. Can it be the problem?

I need to check the code: it could well be that the plugin isn’t able to understand which one is the right source to get the credentials from, because there are more than one.

Can you create an issue and provide all the details?
It is very likely that you have just hit a bug in the code.

Luca.


I am currently relying on Jenkin job's console output. Can I find any detailed log somewhere for Gerrit code review plugin which might give some more details?

Can you suggest any other way to debug the issue to find the exact root cause?

<gerrit_pipeline.jpg>

On Friday, 12 March 2021 at 15:10:03 UTC+1 luca.mi...@gmail.com wrote:


Begin forwarded message:

From: Ali Raza <alira...@...>
Subject: Gerrit review authentication error(Gerrit code review plugin)
Date: 12 March 2021 at 13:04:54 GMT
To: Jenkins Users <jenkins...@...>
Reply-To: jenkins...@...

 Hi
I am using the Gerrit trigger plugin with Jenkins which is working fine but along with it i am also using the Gerrit Code Review plugin. I am calling 'gerrit review' command inside my pipeline script but getting an error 'Gerrit Review requires authentication, however there are no credentials defined or are empty'

I am not sure from where the Gerrit review is getting the credentials. On the other hand, the Gerrit trigger plugin is getting triggered and executing the build process but when it reaches the 'gerrit review' command it is having an authentication error.

I am using the Git/https inside my scm settings.

The Gerrit Code Review plugin is designed to extract the credentials from the Gerrit SCM source.
In your case, for some reasons, your setup isn’t able to add the Gerrit SCM source to the list, even though the plugin is installed.

The result is that when it tries to obtain the credentials, it fails and therefore the read operations are still possible but NOT the write operations (like the review feedback).

Luca.


My scm settings are following
 gerrit settings.jpgcm credentials. 

--
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...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41f480a4-3c6b-4715-974e-43c1c2925c39n%40googlegroups.com.


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/830e5879-cdc0-40a1-9542-00b12b73aef0n%40googlegroups.com.
<gerrit_pipeline.jpg>

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5FB6141D-4601-4F67-B466-EA9D25B45B90%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Gerrit review authentication error(Gerrit code review plugin)

Ali Raza-2
Sure. I am going to report an issue shortly.

On Friday, 12 March 2021 at 15:37:59 UTC+1 [hidden email] wrote:

On 12 Mar 2021, at 14:22, Ali Raza <[hidden email]> wrote:

I am pulling the Jenkins script from another source which is also not using any SSH inside it. Can it be the problem?

I need to check the code: it could well be that the plugin isn’t able to understand which one is the right source to get the credentials from, because there are more than one.

Can you create an issue and provide all the details?
It is very likely that you have just hit a bug in the code.

Luca.


I am currently relying on Jenkin job's console output. Can I find any detailed log somewhere for Gerrit code review plugin which might give some more details?

Can you suggest any other way to debug the issue to find the exact root cause?

<gerrit_pipeline.jpg>

On Friday, 12 March 2021 at 15:10:03 UTC+1 luca.mi...@gmail.com wrote:


Begin forwarded message:

From: Ali Raza <[hidden email]>
Subject: Gerrit review authentication error(Gerrit code review plugin)
Date: 12 March 2021 at 13:04:54 GMT
To: Jenkins Users <[hidden email]>
Reply-To: [hidden email]

 Hi
I am using the Gerrit trigger plugin with Jenkins which is working fine but along with it i am also using the Gerrit Code Review plugin. I am calling 'gerrit review' command inside my pipeline script but getting an error 'Gerrit Review requires authentication, however there are no credentials defined or are empty'

I am not sure from where the Gerrit review is getting the credentials. On the other hand, the Gerrit trigger plugin is getting triggered and executing the build process but when it reaches the 'gerrit review' command it is having an authentication error.

I am using the Git/https inside my scm settings.

The Gerrit Code Review plugin is designed to extract the credentials from the Gerrit SCM source.
In your case, for some reasons, your setup isn’t able to add the Gerrit SCM source to the list, even though the plugin is installed.

The result is that when it tries to obtain the credentials, it fails and therefore the read operations are still possible but NOT the write operations (like the review feedback).

Luca.


My scm settings are following
 gerrit settings.jpgcm credentials. 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41f480a4-3c6b-4715-974e-43c1c2925c39n%40googlegroups.com.


--
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 [hidden email].

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c215fa11-8ee7-45b1-91c8-d0eb5d2580ccn%40googlegroups.com.