Merges the changes in the morty branch into krogoth to get Rust 1.10.0 and Rust 1.12.1 into krogoth. Additionally this allows for Rust, Cargo and any recipes to be built without internet access if they are defined using cargo-bitbake. Fixes #87. Fixes #122.
37 lines
1.0 KiB
Groovy
37 lines
1.0 KiB
Groovy
def targets = [ 'qemux86', 'qemux86-64', 'qemuarm', 'qemuarm64' ]
|
|
|
|
def machine_builds = [:]
|
|
|
|
for (int i = 0; i < targets.size(); i++) {
|
|
def machine = targets.get(i)
|
|
|
|
machine_builds["$machine"] = {
|
|
node {
|
|
try {
|
|
stage("checkout $machine") {
|
|
checkout scm
|
|
}
|
|
stage("setup-env $machine") {
|
|
sh "./scripts/setup-env.sh"
|
|
}
|
|
stage("fetch $machine") {
|
|
sh "GIT_LOCAL_REF_DIR=/srv/git-cache/ ./scripts/fetch.sh krogoth"
|
|
}
|
|
stage("build $machine") {
|
|
sh "MACHINE=${machine} ./scripts/build.sh"
|
|
}
|
|
} catch (e) {
|
|
echo "Caught: ${e}"
|
|
throw e
|
|
} finally {
|
|
stage("cleanup $machine") {
|
|
sh "./scripts/cleanup-env.sh"
|
|
deleteDir()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
parallel machine_builds
|