This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/Jenkinsfile

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-10-28 17:00:20 -07:00
#!/usr/bin/env groovy
2016-11-01 16:03:31 -07:00
def changelog = getChangeLog currentBuild
slackSend "Building ${env.JOB_NAME} #${env.BUILD_NUMBER} \n Change Log: \n ${changelog}"
2016-10-28 17:00:20 -07:00
parallel 'centos7': {
node('centos7') {
try {
checkout scm
stage('Build centos7') {
2016-10-28 17:26:04 -07:00
sh 'make linux_service_and_intercept SDK_LWIP=1 SDK_IPV4=1'
2016-10-28 17:00:20 -07:00
}
}
catch (err) {
currentBuild.result = "FAILURE"
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on centos7 (<${env.BUILD_URL}|Open>)"
throw err
}
}
2016-11-01 15:53:06 -07:00
}, 'macOS': {
node('macOS') {
try {
checkout scm
stage('Build macOS') {
sh 'make osx_service_and_intercept SDK_LWIP=1 SDK_IPV4=1'
}
}
catch (err) {
currentBuild.result = "FAILURE"
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
throw err
}
}
2016-11-01 15:58:40 -07:00
}
slackSend color: "#00ff00", message: "${env.JOB_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)"