-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
54 lines (51 loc) · 1.67 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
43
44
45
46
47
48
49
50
51
52
53
54
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
stages {
stage('Build') {
steps {
ircNotify notifyOnStart:true, extraMessage: "Starting Build of Paracooba."
sh 'mkdir -p build/third_party/cadical-out/build/ && touch build/third_party/cadical-out/build/libcadical.a'
cmakeBuild buildType: 'Release', buildDir: 'build', cleanBuild: true, installation: 'InSearchPath', steps: [[withCmake: true]]
}
}
stage('Test') {
steps {
ctest arguments: '-T test --no-compress-output', installation: 'InSearchPath', workingDir: 'build'
}
}
stage('Package') {
steps {
cpack arguments: '-DBUILD_NUMBER=${currentBuild.number}', installation: 'InSearchPath', workingDir: 'build'
archiveArtifacts artifacts: 'build/packages/*.deb', fingerprint: true
}
}
}
post {
always {
archiveArtifacts (
artifacts: 'build/Testing/**/*.xml',
fingerprint: true
)
// Process the CTest xml output with the xUnit plugin
xunit (
testTimeMargin: '3000',
thresholdMode: 1,
thresholds: [
skipped(failureThreshold: '0'),
failed(failureThreshold: '0')
],
tools: [CTest(
pattern: 'build/Testing/**/*.xml',
deleteOutputFiles: true,
failIfNotNew: false,
skipNoTestFiles: true,
stopProcessingIfError: true
)]
)
ircNotify()
}
}
}