-
Notifications
You must be signed in to change notification settings - Fork 196
/
Jenkinsfile
65 lines (53 loc) · 1.18 KB
/
Jenkinsfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!groovy
def FAILED_STAGE
pipeline {
agent none
environment {
REPO_NAME = "braintree-ruby"
SLACK_CHANNEL = "#auto-team-sdk-builds"
}
stages {
stage("Audit") {
parallel {
// Runs a static code analysis scan and posts results to the PayPal Polaris server
stage("Polaris") {
agent {
node {
label ""
customWorkspace "workspace/${REPO_NAME}"
}
}
steps {
polarisAudit()
}
post {
failure {
script {
FAILED_STAGE = env.STAGE_NAME
}
}
}
}
// Runs a software composition analysis scan and posts results to the PayPal Black Duck server
stage("Black Duck") {
agent {
node {
label ""
customWorkspace "workspace/${REPO_NAME}"
}
}
steps {
blackduckAudit()
}
post {
failure {
script {
FAILED_STAGE = env.STAGE_NAME
}
}
}
}
}
}
}
}