-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfilePolicy
39 lines (38 loc) · 1.29 KB
/
JenkinsfilePolicy
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
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
powershell 'mvn package'
}
}
stage('SCA SC') {
steps {
withCredentials([string(credentialsId: 'SRCCLR_API_TOKEN', variable: 'SRCCLR_API_TOKEN')]) {
}
powershell """
Set-ExecutionPolicy AllSigned -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://download.srcclr.com/ci.ps1'))
srcclr scan --allow-dirty .
"""
}
}
stage('Veracode Sast') {
// upload and scan
steps {
veracode applicationName: 'VeraDemo', canFailJob: false, createProfile: false, criticality: 'High', fileNamePattern: '', replacementPattern: '', sandboxName: '', scanExcludesPattern: '', scanIncludesPattern: '', scanName: "$BUILD_NUMBER", teams: '', timeout: 60, uploadExcludesPattern: '', uploadIncludesPattern: '**/**.war', vid: VERACODE_API_ID, vkey: VERACODE_API_KEY
}
}
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
post {
always {
archiveArtifacts artifacts: 'results.json', fingerprint: true
}
}