-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
76 lines (76 loc) · 2.85 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
pipeline {
options {
disableConcurrentBuilds()
}
agent {
node {
label 'master'
customWorkspace 'workspace/CoberturaConverter'
}
}
environment {
KeyVaultBaseUrl = credentials('AzureCiKeyVaultBaseUrl')
KeyVaultClientId = credentials('AzureCiKeyVaultClientId')
KeyVaultClientSecret = credentials('AzureCiKeyVaultClientSecret')
}
stages {
stage ('Test') {
steps {
powershell './build.ps1 Coverage -configuration Debug'
}
post {
always {
recordIssues(
tools: [
msBuild(),
taskScanner(
excludePattern: '**/*node_modules/**/*',
highTags: 'HACK, FIXME',
ignoreCase: true,
includePattern: '**/*.cs, **/*.g4, **/*.ts, **/*.js',
normalTags: 'TODO')
])
xunit(
testTimeMargin: '3000',
thresholdMode: 1,
thresholds: [
failed(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0'),
skipped(failureNewThreshold: '0', failureThreshold: '0', unstableNewThreshold: '0', unstableThreshold: '0')
],
tools: [
xUnitDotNet(deleteOutputFiles: true, failIfNotNew: true, pattern: '**/*testresults*.xml', stopProcessingIfError: true)
])
cobertura(
coberturaReportFile: 'output/cobertura_coverage.xml',
failUnhealthy: false,
failUnstable: false,
maxNumberOfBuilds: 0,
onlyStable: false,
zoomCoverageChart: false)
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'output/CoverageReport',
reportFiles: 'index.htm',
reportName: 'Coverage Report',
reportTitles: ''])
}
}
}
stage ('Deploy') {
steps {
powershell './build.ps1 UploadDocumentation+PublishGitHubRelease'
}
}
}
post {
always {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: "georg@dangl.me",
sendToIndividuals: true])
cleanWs()
}
}
}