Skip to content

Commit

Permalink
Using single quote for security
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed Oct 5, 2023
1 parent fe6a12d commit ab57e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Or **/*x64_linux*.tar.gz,**/*x64_linux*.sha256.txt,**/*x64_linux*.json,**/*x64_l
selector: [$class: 'SpecificBuildSelector', buildNumber: "${upstreamJobNumber}"]])

withCredentials([string(credentialsId: "${params.GITHUB_CREDENTIAL}", variable: 'secretToken')]) {
withEnv(["GITHUB_TOKEN=${secretToken}"]) {
withEnv(['GITHUB_TOKEN=' + secretToken]) {
sh '''
export VERSION=`echo $VERSION | awk '{print toupper($0)}'`
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ./sbin/Release.sh
Expand Down

0 comments on commit ab57e97

Please sign in to comment.