RE: Using withEnv with withCredentials

2021-03-09 Thread Reinhold Füreder
'Björn Pedersen' via Jenkins Users Sent: Dienstag, 9. März 2021 08:10 To: Jenkins Users Subject: Re: Using withEnv with withCredentials Used : withEnv([‘http_proxy=https://${PROXY_CREDENTIALS}@proxy-endpoint.com:3128']) { Note the single quotes, this needs to be double-quoted for

Re: Using withEnv with withCredentials

2021-03-08 Thread 'Björn Pedersen' via Jenkins Users
Used : withEnv([‘http_proxy=https://${PROXY_CREDENTIALS}@proxy-endpoint.com:3128']) { Note the single quotes, this needs to be double-quoted for the replacement to happen. Björn kelvSYC schrieb am Montag, 8. März 2021 um 22:29:00 UTC+1: > Suppose I have a username and password credential

Using withEnv with withCredentials

2021-03-08 Thread kelvSYC
Suppose I have a username and password credential that I use with a withCredentials step, and I wish to use it to construct a URL for use with the http_proxy environment variable. Currently I have this: withCredentials([usernameColonPassword(credentialsId:’proxy-credentials’, variable: ‘PROXY_C