wip: ci
dustin/mqttmarionette/pipeline/head Something is wrong with the build of this commit Details

Dustin 2023-01-10 21:16:20 -06:00
parent 4156a10685
commit 4e48fd7b47
1 changed files with 59 additions and 0 deletions

59
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,59 @@
// vim: set sw=4 ts=4 sts=4 et :
pipeline {
agent none
stages {
stage('Build') {
parallel {
stage('Build x86_64') {
agent {
kubernetes {
containerTemplate {
name 'build'
image 'docker.io/library/rust:1.65'
command 'cat'
ttyEnabled true
}
nodeSelector 'kubernetes.io/arch=amd64'
defaultContainer 'build'
}
}
steps {
sh 'cargo build --release'
sh 'ln -sr target/release $(uname -m)'
}
post {
success {
archiveArtifacts 'x86_64/mqttmarionette'
}
}
}
stage('Build aarch64') {
agent {
kubernetes {
containerTemplate {
name 'build'
image 'docker.io/library/rust:1.65'
command 'cat'
ttyEnabled true
}
nodeSelector 'kubernetes.io/arch=arm64'
defaultContainer 'build'
}
}
steps {
sh 'cargo build --release'
sh 'ln -sr target/release $(uname -m)'
}
post {
success {
archiveArtifacts 'aarch64/mqttmarionette'
}
}
}
}
}
}
}