-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
36 lines (28 loc) · 832 Bytes
/
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
node {
try {
stage ('Checkout'){
checkout scm
}
stage ('Build Unity Project'){
powershell './UnityBuild.ps1 -project Hololens-Nav -NoNewWindow'
}
stage ('Build AppX Project'){
powershell './AppXBuild.ps1 -project Hololens-Nav -NoNewWindow'
}
stage ('Upload to S3'){
powershell './deployS3.ps1'
cleanWs()
}
notifySuccessful()
} catch (e) {
currentBuild.result = "FAILED"
notifyFailed()
throw e
}
}
def notifySuccessful(){
slackSend (color: '#00FF00', message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}
def notifyFailed() {
slackSend (color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}