Commit def0876d authored by Guido Gunther's avatar Guido Gunther

Jenkinsfile: Allow to build encrypted images

These are for testing only since they have a well known encryption
key.
parent bfca075a
Pipeline #65355 passed with stage
in 8 seconds
......@@ -5,7 +5,8 @@ node {
build_on_x86 = [ 'qemu-x86_64' ]
qcow2_builds = [ 'qemu-x86_64' ]
separate_boot_image = []
currentBuild.description = "plain ${params.board} ${params.dist} image"
img_type = 'plain'
lukspin = ''
parameters {
string(name: 'board', defaultValue: "librem5r4", description: 'What board type to build for?')
......@@ -13,8 +14,16 @@ node {
string(name: 'publish', defaultValue: "false", description: 'Should the image get published?')
string(name: 'kernel_url', defaultValue: "", description: 'The URL of the kernel')
string(name: 'uboot_url', defaultValue: "", description: 'The URL for u-boot')
booleanParam(name: 'luks', defaultValue: false, descrition: 'Should the image use luks encryption?')
}
if (params.luks) {
img_type = 'luks'
lukspin = '123456'
}
currentBuild.description = "${img_type} ${params.board} ${params.dist} image"
if (build_on_x86.contains(params.board)) {
nodename = 'x86'
} else { // Fall back to master if we don't know better
......@@ -41,7 +50,7 @@ node {
sh "make DIST='${params.dist}' BOARD='${params.board}' check"
}
stage('Build') {
sh "make DIST='${params.dist}' BOARD='${params.board}'"
sh "make DIST='${params.dist}' BOARD='${params.board}' LUKS='${lukspin}'"
}
stage('Publish') {
if( "${params.publish}"=="true" ) {
......
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