forked from MadCoderZ/NewsBotIRC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
42 lines (33 loc) · 1.37 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
pipeline {
agent any
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "M3"
}
stages {
stage('Build') {
steps {
checkout scm
// Run Maven on a Unix agent.
sh "mvn -Dmaven.test.failure.ignore=true clean package"
}
}
stage('SCA from Fortify') {
steps {
fortifyUpdate updateServerURL: 'https://update.fortify.com'
fortifyClean addJVMOptions: '', buildID: 'NewsBotIRC', logFile: '', maxHeap: ''
fortifyTranslate addJVMOptions: '', buildID: 'NewsBotIRC', excludeList: '', logFile: '', maxHeap: '', projectScanType: fortifyMaven3(mavenOptions: '')
fortifyScan addJVMOptions: '', addOptions: '', buildID: 'NewsBotIRC', customRulepacks: '', logFile: '', maxHeap: '', resultsFile: 'NewsBotIRC.fpr'
fortifyUpload appName: 'NewsBotIRC', appVersion: '0.2.1-SNAPSHOT', failureCriteria: '', filterSet: '', pollingInterval: '', resultsFile: 'NewsBotIRC.fpr'
}
post {
// If Maven was able to run the tests, even if some of the test
// failed, record the test results and archive the jar file.
success {
junit '**/target/surefire-reports/TEST-*.xml'
archiveArtifacts 'target/*.jar'
}
}
}
}
}