-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
19 lines (16 loc) · 953 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// import the cheribuildProject() step
library 'ctsrd-jenkins-scripts'
def archiveQEMU(String target) {
return {
sh "rm -rf \$WORKSPACE/qemu-${target} && mv \$WORKSPACE/tarball/usr \$WORKSPACE/qemu-${target}"
archiveArtifacts allowEmptyArchive: false, artifacts: "qemu-${target}/bin/qemu-system-*, qemu-${target}/share/qemu/efi-pcnet.rom, qemu-${target}/share/qemu/vgabios-cirrus.bin", fingerprint: true, onlyIfSuccessful: true
}
}
cheribuildProject(target: 'qemu', cpu: 'native', skipArtifacts: true,
buildStage: "Build Linux", nodeLabel: 'linux',
extraArgs: '--unified-sdk --without-sdk --install-prefix=/usr',
skipTarball: true, afterBuild: archiveQEMU('linux'))
cheribuildProject(target: 'qemu', cpu: 'native', skipArtifacts: true,
buildStage: "Build FreeBSD", nodeLabel: 'freebsd',
extraArgs: '--unified-sdk --without-sdk --install-prefix=/usr',
skipTarball: true, afterBuild: archiveQEMU('freebsd'))