Commit 865a5a26 authored by Guido Gunther's avatar Guido Gunther

Jenkinsfile: honor distribution

parent 3a9801b9
......@@ -8,6 +8,7 @@ node {
parameters {
string(name: 'board', defaultValue: "imx6", description: 'What board type to build for?')
string(name: 'dist', defaultValue: "buster+ci", description: 'What distribuition to build for?')
string(name: 'build_type', defaultValue: "unstable", description: 'What type of build is this?')
string(name: 'publish', defaultValue: "false", description: 'Should the image get published?')
}
......@@ -27,17 +28,17 @@ node {
git url: gitUrl, branch: branch
}
stage('Clean') {
sh "make BOARD='${params.board}' TYPE='${params.build_type}' clean"
sh "make DIST='${params.dist}' BOARD='${params.board}' TYPE='${params.build_type}' clean"
}
stage('check') {
sh "make BOARD='${params.board}' TYPE='${params.build_type}' check"
sh "make DIST='${params.dist}' BOARD='${params.board}' TYPE='${params.build_type}' check"
}
stage('Build') {
sh "make BOARD='${params.board}' TYPE='${params.build_type}'"
sh "make DIST='${params.dist}' BOARD='${params.board}' TYPE='${params.build_type}'"
}
stage('Publish') {
if( "${params.publish}"=="true" ) {
sh "make BOARD='${params.board}' TYPE='${params.build_type}' sha256sums"
sh "make DIST='${params.dist}' BOARD='${params.board}' TYPE='${params.build_type}' sha256sums"
sh "bin/publish_ci_files -t image -T ${params.build_type} ${params.board}.img.xz sha256sums"
} else {
echo 'This image will not be published'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment