Skip to content

Commit

Permalink
env var
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Oct 17, 2024
1 parent b7143ad commit 5e100e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ node {
environment {
CI_ARTIFACTS_TOKEN="${env.CI_ARTIFACTS_TOKEN}"
}
sh '''
sh '''#!/bin/bash
echo "$CI_ARTIFACTS_TOKEN"
# get crumb for CSRF
COOKIE_JAR=/tmp/cookies
CRUMB=$(curl --cookie-jar $COOKIE_JAR 'https://jenkins.comma.life/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
Expand Down

0 comments on commit 5e100e8

Please sign in to comment.