This is Tuleap 16.4.99.10
[tuleap.git] / tests / Jenkinsfile-security-scan-vuln-deps
blobb35e8430b9e3773090d5e3a5acc6276befc5c082
1 #!/usr/bin/env groovy
3 def actions
5 pipeline {
6     agent {
7         label 'docker'
8     }
9     triggers { cron('H 5 * * 1-5') }
11     stages {
12         stage('Checkout') {
13             steps {
14                 checkout scm
15             }
16         }
18         stage('Scan') {
19             steps {
20                 dir ('sources') {
21                     script {
22                         actions = load 'tests/actions.groovy'
23                         actions.runInsideNixShell('make scan-vuln-deps', 'dev')
24                     }
25                 }
26             }
27         }
28     }
30     post {
31         failure {
32             withCredentials([string(credentialsId: 'email-notification-rd-team', variable: 'email')]) {
33                 mail to: email,
34                 subject: "${currentBuild.fullDisplayName} is broken",
35                 body: "See ${env.BUILD_URL}"
36             }
37         }
38         unstable {
39             withCredentials([string(credentialsId: 'email-notification-rd-team', variable: 'email')]) {
40                 mail to: email,
41                 subject: "${currentBuild.fullDisplayName} is unstable",
42                 body: "See ${env.BUILD_URL}"
43             }
44         }
45     }