Getting Error when running Gcloud commands on jenkins windows agent "When Running Gcloud commands on jenkins windows agent getting error like "This may be due to network connectivity issues. Please check your network settings, and the status of the s

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting Error when running Gcloud commands on jenkins windows agent "When Running Gcloud commands on jenkins windows agent getting error like "This may be due to network connectivity issues. Please check your network settings, and the status of the s

Shanmukha Bera
Hi Team,
We have master slave jenkins setup where i am running windows agent as slave and want to run my powershell script which consist of gcloud commands so wn we run on windows agent we are getting below error.
"This may be due to network connectivity issues. Please check your network settings, and the status of the service you are trying to reach."
So what we done as part of testing we manually login to agent and run the gcloud commands we able to get output .But when we run via jenkins we getting the error.
And the VM is part of gcloud so we are not using any plugin to authenticate to cloud jst we using service account to authenticate to gcloud.

NOTE:
None of Gcloud commands working Via jenkins.

How can we fix this issue?

Thanks,
Shanmukha 

--
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/0fa7430c-25fe-44d4-bcdc-3da79023a0d4%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Getting Error when running Gcloud commands on jenkins windows agent "When Running Gcloud commands on jenkins windows agent getting error like "This may be due to network connectivity issues. Please check your network settings, and the status of the s

James Nord-2
some built-in service accounts by their nature do not have network access for security.

generally don't run Jenkins or its agents as a built-in service type as it exposes your infrastructure too much (like running as root on Linux).  try setting up a separate service account for Jenkins and configure the service to use that account.

--
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/cba9e786-92c6-4f6c-b3e4-78b077676302%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Getting Error when running Gcloud commands on jenkins windows agent "When Running Gcloud commands on jenkins windows agent getting error like "This may be due to network connectivity issues. Please check your network settings, and the status of

Shanmukha Bera
Hi James,

Here I am using gcloud service account which generally we used to authenticate gcloud services.And One more question.
We have jenkins setup with proxy is that cause we are getting this error?

On Saturday, March 28, 2020 at 10:04:13 AM UTC-7, James Nord wrote:
some built-in service accounts by their nature do not have network access for security.

generally don't run Jenkins or its agents as a built-in service type as it exposes your infrastructure too much (like running as root on Linux).  try setting up a separate service account for Jenkins and configure the service to use that account.

--
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/147674be-0833-4197-a3c2-8b6b54905043%40googlegroups.com.