-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
61 lines (61 loc) · 2.19 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
pipeline {
options {
disableConcurrentBuilds()
}
agent {
node {
label 'master'
customWorkspace 'workspace/Dangl.AVACloudClientGenerator'
}
}
environment {
KeyVaultBaseUrl = credentials('AzureCiKeyVaultBaseUrl')
KeyVaultClientId = credentials('AzureCiKeyVaultClientId')
KeyVaultClientSecret = credentials('AzureCiKeyVaultClientSecret')
KeyVaultTenantId = credentials('AzureKeyVaultTenantId')
}
stages {
stage ('Test') {
steps {
powershell './build.ps1 Test -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: '1', failureThreshold: '1', unstableNewThreshold: '1', unstableThreshold: '1')
],
tools: [
xUnitDotNet(deleteOutputFiles: true, failIfNotNew: true, pattern: '**/*testresults.xml', stopProcessingIfError: true)
])
}
}
}
stage ('Publish GitHub Release') {
steps {
powershell './build.ps1 Publish'
}
}
}
post {
always {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: "georg@dangl.me",
sendToIndividuals: true])
}
}
}