Updated Jenkinsfile for cmake usage
This commit is contained in:
193
Jenkinsfile
vendored
193
Jenkinsfile
vendored
@@ -8,18 +8,11 @@ node('master') {
|
|||||||
|
|
||||||
parallel 'centos7': {
|
parallel 'centos7': {
|
||||||
node('centos7') {
|
node('centos7') {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
// ---------------------------- static library (Linux) --------------------------
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// NO_STACK
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkout scm
|
checkout scm
|
||||||
sh 'git submodule update --init'
|
sh 'git submodule update --init'
|
||||||
stage('linux static lib, no stack') {
|
stage('linux') {
|
||||||
sh 'make clean; make -j4 static_lib NO_STACK=1; make tests'
|
sh 'cmake -H. -Bbuild; cmake --build build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
@@ -27,188 +20,17 @@ parallel 'centos7': {
|
|||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
// picoTCP
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('linux static lib, picoTCP') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('linux static lib, picoTCP, ipv4') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV4=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('linux static lib, picoTCP, ipv6') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV6=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('linux static lib, picoTCP, ipv4, ipv6') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV4=1 LIBZT_IPV6=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// lwIP
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('linux static lib lwIP') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_LWIP=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on linux (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}, 'macOS': {
|
},
|
||||||
|
|
||||||
|
'macOS': {
|
||||||
node('macOS') {
|
node('macOS') {
|
||||||
|
|
||||||
unlockKeychainMac "~/Library/Keychains/login.keychain-db"
|
unlockKeychainMac "~/Library/Keychains/login.keychain-db"
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
// -------------------------- Intercept Library (macOS) -------------------------
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
// ---------------------------- App Frameworks (macOS) --------------------------
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
// ----------------------------- static library (macOS) -------------------------
|
|
||||||
// ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// NO_STACK
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkout scm
|
checkout scm
|
||||||
sh 'git submodule update --init'
|
sh 'git submodule update --init'
|
||||||
stage('macOS static lib, no stack') {
|
stage('macOS') {
|
||||||
sh 'make clean; make -j4 static_lib NO_STACK=1; make tests'
|
sh 'cmake -H. -Bbuild; cmake --build build'
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
// picoTCP
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('macOS static lib, picoTCP') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('macOS static lib, picoTCP, ipv4') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV4=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('macOS static lib, picoTCP, ipv6') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV6=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('macOS static lib, picoTCP, ipv4, ipv6') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_PICO=1 LIBZT_IPV4=1 LIBZT_IPV6=1; make tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
currentBuild.result = "FAILURE"
|
|
||||||
slackSend color: '#ff0000', message: "${env.JOB_NAME} broken on macOS (<${env.BUILD_URL}|Open>)"
|
|
||||||
throw err
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
// lwIP
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
|
||||||
checkout scm
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
stage('macOS static lib, lwIP') {
|
|
||||||
sh 'make clean; make -j4 static_lib STACK_LWIP=1; make tests'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
@@ -219,5 +41,4 @@ parallel 'centos7': {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mattermostSend color: "#00ff00", message: "${env.JOB_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)"
|
mattermostSend color: "#00ff00", message: "${env.JOB_NAME} #${env.BUILD_NUMBER} Complete (<${env.BUILD_URL}|Show More...>)"
|
||||||
Reference in New Issue
Block a user