blob: cf3b864c0d96a8c5c07d24a024235c584f0ebbc3 (
plain)
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
|
@Library("hub")_
setupBlackduckBuildParameters()
def hubProjectName = "ansible-santricity-collection" //"esg"
def hubProjectVersion = "1.1"
pipeline {
agent {
label "linux-docker"
}
options {
timestamps()
timeout(time: 60, unit: "MINUTES")
}
stages {
stage("Hub scan") {
// NOTE: Using the declarative 'agent { docker image ...}' tends to run on a different node. So don't use it here.
steps {
script {
docker.image("docker.netapp.com/mswbuild/openjdk8:8u181-8").inside {
hubScanProject(
"${hubProjectName}",
"${hubProjectVersion}",
productionScan: true
)
}
}
}
}
}
post {
always {
deleteDir()
}
}
}
|