From 98d7cc8d0c8b884720579ad9a9dc944517fc042d Mon Sep 17 00:00:00 2001 From: Zuhayr Elahi Date: Wed, 28 Aug 2019 11:51:22 -0700 Subject: ADDED a stage for executing License Scans Signed-off-by: Zuhayr Elahi --- script/Jenkinsfile.fossa | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 script/Jenkinsfile.fossa (limited to 'script/Jenkinsfile.fossa') diff --git a/script/Jenkinsfile.fossa b/script/Jenkinsfile.fossa new file mode 100644 index 00000000..480e98ef --- /dev/null +++ b/script/Jenkinsfile.fossa @@ -0,0 +1,20 @@ +pipeline { + agent any + stages { + stage("License Scan") { + agent { + label 'ubuntu-1604-aufs-edge' + } + + steps { + withCredentials([ + string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY') + ]) { + checkout scm + sh "FOSSA_API_KEY='${FOSSA_API_KEY}' BRANCH_NAME='${env.BRANCH_NAME}' make -f script/fossa.mk fossa-analyze" + sh "FOSSA_API_KEY='${FOSSA_API_KEY}' make -f script/fossa.mk fossa-test" + } + } + } + } +} -- cgit v1.2.3