-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (37 loc) · 1.57 KB
/
Jenkinsfile
File metadata and controls
37 lines (37 loc) · 1.57 KB
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
pipeline {
agent any
environment {
CPPTEST_HOME = "c:/Progra~1/Parasoft/C++test/2021.1Standard"
CMAKE_HOME = "c:/cygwin64/bin"
CONFIG = "builtin://Recommended Rules"
}
stages {
stage('Build') {
steps {
bat "${CMAKE_HOME}/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -G 'Unix Makefiles' -S . -B build"
bat "echo ${PATH}"
bat "c++.exe -c -Iinclude ATM.cxx"
bat "${CMAKE_HOME}/cmake --build build"
bat "sed -e 's@\\/cygdrive\\/c@c\\:@g' -e 's@\\/usr\\/bin\\/@@g' build/compile_commands.json > build/fixed_compile_commands.json"
//new commit
}
}
stage('Test') {
steps {
bat "${CPPTEST_HOME}/cpptestcli -config \"${CONFIG}\" -compiler gcc_9-64 -report package/doku -module . -input build/fixed_compile_commands.json"
}
post {
always {
archiveArtifacts artifacts: "package/doku/*", fingerprint: false
recordIssues tool: parasoftFindings(localSettingsPath: 'd:/localSettings.properties', pattern: 'package/doku/*'),
qualityGates: [
[type: 'TOTAL_HIGH', threshold: 1, unstable: true],
[type: 'TOTAL_ERROR', threshold: 1, unstable: true],
[type: 'NEW', threshold: 1, unstable: true],
],
enabledForFailure: false, failOnError: true
}
}
}
}
}