Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 8c5c7b3

Browse files
committed
MOVED FOSSA_API_KEY to use as credentials instead of in environment
block Signed-off-by: Zuhayr Elahi <[email protected]>
1 parent c2c17e6 commit 8c5c7b3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Jenkinsfile.baguette

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ pipeline {
5757
}
5858
}
5959
stage("License Scan") {
60-
environment {
61-
FOSSA_API_KEY=credentials('cb07b147-32a4-4400-aaac-21c3f8c9e62e')
62-
}
6360
agent {
6461
label 'ubuntu-1604-aufs-edge'
6562
}
@@ -72,8 +69,8 @@ pipeline {
7269
checkout scm
7370
ansiColor('xterm') {
7471
sh "docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD"
75-
sh "BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
76-
sh 'make fossa-test'
72+
sh "FOSSA_API_KEY=$FOSSA_API_KEY BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
73+
sh "FOSSA_API_KEY=$FOSSA_API_KEY make fossa-test"
7774
}
7875
}
7976
}

0 commit comments

Comments
 (0)