Skip to end of metadata
Go to start of metadata

Plugin Information

View GCloud SDK on the plugin site for more information.

Allows users to invoke gcloud tools with jenkins credentials


  1. Has anyone been able to get this to work? No matter what I try it doesn't add the correct path to the gcloud installation. 

    [workspace] $ gcloud help
    FATAL: Cannot run program "gcloud" (in directory "/var/lib/jenkins/jobs/johntest/workspace"): error=2, No such file or directory Cannot run program "gcloud" (in directory "/var/lib/jenkins/jobs/johntest/workspace"): error=2, No such file or directory
    	at java.lang.ProcessBuilder.start(
    	at hudson.Proc$LocalProc.<init>(
    	at hudson.Proc$LocalProc.<init>(
    	at hudson.Launcher$LocalLauncher.launch(
    	at hudson.Launcher$ProcStarter.start(
    	at hudson.Launcher$ProcStarter.join(
    	at com.byclosure.jenkins.plugins.gcloud.GCloudSDKBuilder.executeGCloudCLI(
    	at com.byclosure.jenkins.plugins.gcloud.GCloudSDKBuilder.perform(
    	at hudson.tasks.BuildStepMonitor$1.perform(
    	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
    	at hudson.model.Build$
    	at hudson.model.Build$BuildExecution.doRun(
    	at hudson.model.AbstractBuild$
    	at hudson.model.Run.execute(
    	at hudson.model.ResourceController.execute(
  2. We've got exactly the same issue.  If I run gcloud via Windows batch command, it works as expected.  If I do it with this plugin, I get the same error shown above.  Perhaps there is some configuration that needs to be done, but I'm not sure why the plugin would try to run this from the job's workspace rather than a defined tool location.  Any fix would be greatly appreciated.