-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkinsfile
37 lines (33 loc) · 1.07 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
pipeline {
agent any
stages {
stage('pull') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[credentialsId: '3d75f8e4-98cf-4159-b7d9-81b95c29644b', url: 'https://github.com/TsungchengWu/GTestDemo.git']]])
}
}
stage('build') {
steps {
cmakeBuild buildDir: 'build', buildType: 'Release', cleanBuild: true, generator: 'MinGW Makefiles', installation: 'InSearchPath', label: 'CMakeBuild'
cmake arguments: '--build build', installation: 'InSearchPath'
}
}
stage('test'){
steps {
ctest installation: 'InSearchPath', label: 'CMakeTest', workingDir: 'build'
junit 'build/test/xmls/*.xml'
}
}
}
post {
always {
echo "pipeline running finish"
}
failure {
echo "pipeline failure"
}
success {
echo "pipeline success"
}
}
}