-
Notifications
You must be signed in to change notification settings - Fork 18
/
Jenkinsfile
86 lines (86 loc) · 3.09 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
77
78
79
80
81
82
83
84
85
86
pipeline {
agent {
node {
label 'master'
customWorkspace 'workspace/LightQuery'
}
}
environment {
KeyVaultBaseUrl = credentials('AzureCiKeyVaultBaseUrl')
KeyVaultClientId = credentials('AzureCiKeyVaultClientId')
KeyVaultClientSecret = credentials('AzureCiKeyVaultClientSecret')
KeyVaultTenantId = credentials('AzureKeyVaultTenantId')
}
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: false)
])
cobertura(
coberturaReportFile: 'output/Cobertura.xml',
failUnhealthy: false,
failUnstable: false,
maxNumberOfBuilds: 0,
onlyStable: false,
zoomCoverageChart: false)
}
}
}
stage ('Deploy') {
steps {
powershell './build.ps1 UploadDocumentation+PublishGitHubRelease'
}
}
stage ('Angular Library Test') {
steps {
powershell './build.ps1 NgLibraryTest'
}
post {
always {
junit '**/*karma-results.xml'
}
}
}
stage ('Angular Library Publish') {
steps {
powershell './build.ps1 NgLibraryPublish'
}
}
}
post {
always {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: [
emailextrecipients([
[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']
])
].join(' '),
sendToIndividuals: true])
cleanWs()
}
}
}