mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-29 15:43:52 +00:00
added slack notifications
This commit is contained in:
parent
c976b87ac7
commit
6cb23e7069
49
Jenkinsfile
vendored
49
Jenkinsfile
vendored
@ -1,31 +1,58 @@
|
||||
#!/usr/bin/env groovy
|
||||
|
||||
slackSend "Building ${env.JOB_NAME}/${env.BRANCH_NAME} #${env.BUILD_NUM}"
|
||||
parallel 'centos7': {
|
||||
node('centos7') {
|
||||
checkout scm
|
||||
try {
|
||||
checkout scm
|
||||
|
||||
stage('Build Centos 7') {
|
||||
sh 'make -f make-linux.mk'
|
||||
stage('Build Centos 7') {
|
||||
sh 'make -f make-linux.mk'
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
currentBuild.result = "FAILURE"
|
||||
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on Centos 7 (<${env.BUILD_URL}|Open>)"
|
||||
|
||||
throw err
|
||||
}
|
||||
}
|
||||
}, 'android-ndk': {
|
||||
node('android-ndk') {
|
||||
checkout scm
|
||||
try {
|
||||
checkout scm
|
||||
|
||||
stage('Build Android NDK') {
|
||||
sh '/android/android-ndk-r13/ndk-build -C $WORKSPACE/java ZT1=$WORKSPACE'
|
||||
stage('Build Android NDK') {
|
||||
sh "/android/android-ndk-r13/ndk-build -C $WORKSPACE/java ZT1=${WORKSPACE}"
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
currentBuild.result = "FAILURE"
|
||||
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on Android NDK (<${env.BUILD_URL}|Open>)"
|
||||
|
||||
throw err
|
||||
}
|
||||
}
|
||||
}, 'macOS': {
|
||||
node('macOS') {
|
||||
checkout scm
|
||||
try {
|
||||
checkout scm
|
||||
|
||||
stage('Build macOS') {
|
||||
sh 'make -f make-mac.mk'
|
||||
stage('Build macOS') {
|
||||
sh 'make -f make-mac.mk'
|
||||
}
|
||||
|
||||
stage('Build macOS UI') {
|
||||
sh 'cd macui && xcodebuild -target "ZeroTier One" -configuration Debug'
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
currentBuild.result = "FAILURE"
|
||||
slackSend color: '#ff0000', message: "${env.JOB_NAME}/${env.BRANCH_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
||||
|
||||
stage('Build macOS UI') {
|
||||
sh 'cd macui && xcodebuild -target "ZeroTier One" -configuration Debug'
|
||||
throw err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
slackSend "${env.JOB_NAME}/${env.BRANCH_NAME} #${env.BUILD_NUM} Complete (<${env.BUILD_URL}|Show More...>)"
|
Loading…
x
Reference in New Issue
Block a user