Running gcloud command with .sh file on mac is fine, but not on jenkins. see pic below:
Thanks.
CodePudding user response:
End up trying many ways, I find there is an Environment path column on Jenkins System Configuration page. Putting the google-cloud-sdk/bin path into the column will solve the problem.