forked from GeorgDangl/antlr-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
54 lines (54 loc) · 1.46 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
pipeline {
options {
disableConcurrentBuilds()
}
agent {
node {
label 'master'
}
}
environment {
KeyVaultBaseUrl = credentials('AzureCiKeyVaultBaseUrl')
KeyVaultClientId = credentials('AzureCiKeyVaultClientId')
KeyVaultClientSecret = credentials('AzureCiKeyVaultClientSecret')
NODE_OPTIONS = '--openssl-legacy-provider'
}
stages {
stage ('Test') {
steps {
powershell './build.cmd Test'
}
post {
always {
xunit([
JUnit(deleteOutputFiles: true, failIfNotNew: true, pattern: 'karma-results.xml', skipNoTestFiles: false, stopProcessingIfError: true)
])
}
}
}
stage ('Publish Library') {
steps {
powershell './build.cmd Publish'
}
}
stage ('Deploy Demo') {
steps {
powershell './build.cmd DeployDemo'
}
}
stage ('Publish GitHub Release') {
steps {
powershell './build.cmd PublishGitHubRelease'
}
}
}
post {
always {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: "[email protected]",
sendToIndividuals: true])
cleanWs()
}
}
}