-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
62 lines (54 loc) · 1.2 KB
/
Jenkinsfile
File metadata and controls
62 lines (54 loc) · 1.2 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!groovy
pipeline {
// agent defines where the pipeline will run.
agent {
label {
label "ConfigCheck"
}
}
triggers {
cron('H 1 * * *')
}
stages {
stage("Checkout") {
steps {
timeout(time: 2, unit: 'HOURS') {
retry(5) {
checkout scm
}
}
}
}
stage("Run Tests") {
steps {
echo "Running tests"
bat """
setlocal
call run_tests.bat
if %errorlevel% neq 0 exit /b %errorlevel%
"""
}
}
}
post {
always {
junit "test-reports/**/*.xml"
logParser ([
projectRulePath: 'parse_rules',
parsingRulesPath: '',
showGraphs: true,
unstableOnWarning: false,
useProjectRule: true,
])
}
}
// The options directive is for configuration that applies to the whole job.
options {
// as we "checkout scm" as a stage, we do not need to do it here too
buildDiscarder(logRotator(numToKeepStr:'20', daysToKeepStr: '28'))
timeout(time: 180, unit: 'MINUTES')
disableConcurrentBuilds()
timestamps()
skipDefaultCheckout(true)
}
}