Skip to content
Snippets Groups Projects
Commit b2cd901a authored by Emanuele Aina's avatar Emanuele Aina
Browse files

Build everything if the buildOnly param is not set


Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 991beda0
No related branches found
No related tags found
1 merge request!48Build everything if the buildOnly param is not set
...@@ -118,26 +118,26 @@ properties([ ...@@ -118,26 +118,26 @@ properties([
]) ])
]) ])
def buildCandidates = [:]
def buildOnlyList = params?.buildOnly.tokenize(/, ?/).collect { it.tokenize('/') } def buildOnlyList = params?.buildOnly.tokenize(/, ?/).collect { it.tokenize('/') }
buildOnlyList = buildOnlyList buildOnlyList = buildOnlyList
.groupBy{ it[0] } .groupBy{ it[0] }
.collectEntries{ arch, values -> [arch, values.findResults { it[1] } ] } .collectEntries{ arch, values -> [arch, values.findResults { it[1] } ] }
buildCandidates = architectures def buildCandidates = architectures
// filter out architectures which won't be built if (buildOnlyList) {
.subMap(buildOnlyList.keySet()) buildCandidates = buildCandidates
.collectEntries{ arch, architecture -> // filter out architectures which won't be built
// filter out artifact types which won't be built .subMap(buildOnlyList.keySet())
types = architecture.types .collectEntries{ arch, architecture ->
if (buildOnlyList[arch]) // filter out artifact types which won't be built
types = architecture.types.subMap(buildOnlyList[arch]) types = architecture.types
[arch, architecture + [ if (buildOnlyList[arch])
types: types types = architecture.types.subMap(buildOnlyList[arch])
]] [arch, architecture + [
} types: types
]]
}
}
// SSH complains loudly if the current user is not in the user database, so fake that // SSH complains loudly if the current user is not in the user database, so fake that
def withSshAgent(credentials, command) { def withSshAgent(credentials, command) {
......
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