wip: ci
dustin/mqttmarionette/pipeline/head Something is wrong with the build of this commit
Details
dustin/mqttmarionette/pipeline/head Something is wrong with the build of this commit
Details
parent
4156a10685
commit
4e48fd7b47
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue