Jenkinsfile.fossa 617 B

1234567891011121314151617181920
  1. pipeline {
  2. agent any
  3. stages {
  4. stage("License Scan") {
  5. agent {
  6. label 'ubuntu-1604-aufs-edge'
  7. }
  8. steps {
  9. withCredentials([
  10. string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY')
  11. ]) {
  12. checkout scm
  13. sh "FOSSA_API_KEY='${FOSSA_API_KEY}' BRANCH_NAME='${env.BRANCH_NAME}' make -f script/fossa.mk fossa-analyze"
  14. sh "FOSSA_API_KEY='${FOSSA_API_KEY}' make -f script/fossa.mk fossa-test"
  15. }
  16. }
  17. }
  18. }
  19. }