I'm using Jenkins to build packages for Debian and Ubuntu. The new Raspberry PI nodes was added into my setup to build packages for Raspbian:
The problem is how to make pipeline which build noarch package on any node and binary package on nodes for each architecture ?
I'm using patched docker image for each distribution to build package and perform test install for Debian 10-11 and Ubuntu 20.04-21.04. The armel/aarch64 versions of debian images also present on its Raspberry 3/4 nodes.
By default Jenkins pick one of nodes and triger build on it.
stages {
stage('debian-buster') {
agent {
docker { image 'vitexsoftware/debian:buster' }
}
steps {
dir('build/debian/package') {
checkout scm
buildPackage()
installPackages()
}
stash includes: 'dist/**', name: 'dist-buster'
}
post {
success {
archiveArtifacts 'dist/debian/'
copyArtifact()
}
}
}
...
- How i can specify some architecture axe for build ?
- Can i use jenkins node labels somehow ?