> On 10 Mar 2021, at 14:35, Ali Raza <aliraza...@gmail.com> wrote:
> 
> Yes, I have added SCM credentials to my pipeline settings. Inside repository 
> URL I also have ''/a/'' prefix. 

Cool, and you confirm that the clone works as expected.

> 
> Do i need to add SSH keys which I have added to 'gerrit trigger' plugin 
> settings somewhere inside Gerrit server?

Why do you use the Gerrit Trigger plugin? Isn’t this a multi-branch pipeline?

Luca.

> 
> 
> On Wednesday, 10 March 2021 at 15:19:15 UTC+1 luca.mi...@gmail.com wrote:
> 
>> On 10 Mar 2021, at 13:31, Ali Raza <alira...@gmail.com 
>> <applewebdata://B85947CB-1823-4F5A-908B-1298A028FB66>> wrote:
>> 
>>   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'
> 
> Have you defined the credentials in the Gerrit SCM connection in the 
> multi-branch pipeline job?
> Also remember to use the ‘/a/‘ prefix for the Gerrit SCM URL, otherwise the 
> access won’t be authenticated.
> 
> Example:
> Https://review.mycompany.com/a/myrepo <https://review.mycompany.com/a/myrepo>
> 
> HTH
> 
> Luca.
> 
> 
> 
>> 
>> 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.
>> 
>> 
> 
>> -- 
>> 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 
>> <applewebdata://B85947CB-1823-4F5A-908B-1298A028FB66>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/96f09b40-b415-4e18-969f-89d4915bec36n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/96f09b40-b415-4e18-969f-89d4915bec36n%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 jenkinsci-users+unsubscr...@googlegroups.com 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/92a69011-4126-43cb-b8fe-7df9dbaa7328n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/92a69011-4126-43cb-b8fe-7df9dbaa7328n%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/E810633F-1943-4AD9-A0F7-8A089D728E46%40gmail.com.

Reply via email to