forked from michaelkubiaczyk/ssba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
37 lines (32 loc) · 1 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
#!/usr/bin/env groovy
@Library('piper-lib') _
@Library('piper-lib-os') __
import com.sap.icd.jenkins.Utils
import groovy.transform.Field
env.REPOSITORY_UNDER_TEST = "hubadr/jenkins-library"
env.LIBRARY_VERSION_UNDER_TEST = "cxone-dev-michael"
//sapPiperPipeline script: this
timeout(65535){
node {
stage('Init') {
node {
deleteDir()
checkout scm
setupPipelineEnvironment script: this
}
}
stage('CheckmarxOne') {
node {
try {
echo "Invoke CheckmarxOne scan step"
durationMeasure(script: this, measurementName: 'checkmarxone_duration') {
checkmarxOneExecuteScan script: this
}
}
finally {
//sapCumulusUpload script: this, filePattern: '**/Cx1_SASTReport_*.pdf, **/*Cx1_SAST*.html, **/ScanReport.*, **/toolrun_checkmarx_*.json, **/piper_checkmarx_report.json, **/*.sarif', stepResultType: 'checkmarxone'
}
}
}
}
}