I tried to add a directory to the PATH in the Jenkins pipeline using the 
command:
Copy
sh 'export PATH=$PATH:/opt/google-cloud-sdk/bin' 

However, I received the following error:
Copy
+ export 
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/google-cloud-sdk/bin
 
[Pipeline] sh + echo 
/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 
/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 
[Pipeline] sh + gcloud -v 
/var/jenkins_home/workspace/Boris/test3@tmp/durable-30b7cc7d/script.sh.copy: 
1: gcloud: not found [Pipeline] }

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jenkinsci-users/0f617d9d-6a1a-4af6-a1c7-da39620132a6n%40googlegroups.com.

Reply via email to