Skip to content
Snippets Groups Projects
Commit e556244e authored by Denis Pynkin's avatar Denis Pynkin
Browse files

WIP: add fake stage

parent 816a4b52
Branches T4489
No related tags found
No related merge requests found
......@@ -21,6 +21,39 @@ def uploadDirectory(source, target, upload = true) {
}
}
def fakeBuild(architecture, type, board, debosarguments = "", sysroot = false, ostree = false, production = false) {
return {
node("docker-slave") {
checkout scm
docker.withRegistry('https://docker-registry.apertis.org') {
buildenv = docker.image("docker-registry.apertis.org/apertis/apertis-${release}-image-builder")
/* Pull explicitely to ensure we have the latest */
buildenv.pull()
buildenv.inside("--device=/dev/kvm") {
stage("setup ${architecture} ${type}") {
env.PIPELINE_VERSION = VersionNumber(versionNumberString: '${BUILD_DATE_FORMATTED,"yyyyMMdd"}.${BUILDS_TODAY_Z}')
sh ("env ; mkdir -p ${PIPELINE_VERSION}/${architecture}/${type}")
}
try {
stage("${architecture} ${type} fake stage") {
sh(script: """\
cd ${PIPELINE_VERSION}/${architecture}/${type}; \
while true; do echo 'Please do not stop me -- need for main Apertis build'; sleep 120; done""")
}
} finally {
stage("Cleanup ${architecture} ${type}") {
deleteDir()
}
}
}
}
}
}
}
def buildImage(architecture, type, board, debosarguments = "", sysroot = false, ostree = false, production = false) {
return {
node("docker-slave") {
......@@ -174,14 +207,22 @@ def images = [:]
// Types for all boards, common debos arguments, sysroots and ospacks
def types = [ [ "minimal", "", false, true],
[ "target", "", false, true]
[ "fake", "", false, true]
]
images += types.collectEntries { [ "Amd64 ${it[0]}": fakeBuild("amd64",
it[0],
"uefi",
it[1],
it[2],
it[3],
production ) ] }
/*
def types = [ [ "minimal", "", false, true],
[ "target", "", false, true],
[ "development", "--scratchsize 10G", false, false]
]
*/
images += types.collectEntries { [ "Amd64 ${it[0]}": buildImage("amd64",
it[0],
......@@ -206,5 +247,5 @@ images += types.collectEntries { [ "Armhf ${it[0]}": buildImage("armhf",
it[2],
it[3],
production ) ] }
*/
parallel images
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment