Re: can't add directory to the path in Jenkins pipeline

2024-11-07 Thread 'Boris Teplitsky' via Jenkins Users
now it works thanks On Wednesday, November 6, 2024 at 1:51:21 PM UTC+2 kra...@gmail.com wrote: > Use: > > withEnv(['PATH+GCLOUD=/opt/google-cloud-sdk/bin']) { your_body } > > to modify the PATH env variable. > > -- You received this message because you are subscribed to the Google Groups "Jenk

can't add directory to the path in Jenkins pipeline

2024-11-06 Thread 'Boris Teplitsky' via Jenkins Users
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-cl

Re: can't add directory to the path in Jenkins pipeline

2024-11-06 Thread Torsten Krah
Use: withEnv(['PATH+GCLOUD=/opt/google-cloud-sdk/bin']) { your_body } to modify the PATH env variable. -- 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 jenkins