forked from Enalean/tuleap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile-security-scan-vuln-deps
46 lines (41 loc) · 1.14 KB
/
Jenkinsfile-security-scan-vuln-deps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env groovy
def actions
pipeline {
agent {
label 'docker'
}
triggers { cron('H 5 * * 1-5') }
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Scan') {
steps {
dir ('sources') {
script {
actions = load 'tests/actions.groovy'
actions.runInsideNixShell('make scan-vuln-deps', 'dev')
}
}
}
}
}
post {
failure {
withCredentials([string(credentialsId: 'email-notification-rd-team', variable: 'email')]) {
mail to: email,
subject: "${currentBuild.fullDisplayName} is broken",
body: "See ${env.BUILD_URL}"
}
}
unstable {
withCredentials([string(credentialsId: 'email-notification-rd-team', variable: 'email')]) {
mail to: email,
subject: "${currentBuild.fullDisplayName} is unstable",
body: "See ${env.BUILD_URL}"
}
}
}
}