Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Setup a matrix job
  • Loading branch information
vladistan committed Jan 6, 2019
1 parent 4fa302e commit ab850c6
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions test.groovy
@@ -1,8 +1,3 @@
job('test-job') {



}

job("drain-job") {
label('cb2018')
Expand All @@ -24,3 +19,31 @@ job("drain-job") {

steps { shell('docker run vladistan/cb2018t5:0.1 /p/find_ips 114 1') }
}


static String[] getSlices(n) {
return (0..n).collect { "${it}" }
}

matrixJob("vlad-task-5") {

throttleConcurrentBuilds {
categories(['CB',])
throttleMatrixConfigurations(false)

maxPerNode(1)
maxTotal(1)
}

axes {
label('node', ['cb2018',])
text('SLICE1', getSlices(2))
text('SLICE2', getSlices(3))
}

steps {
shell('docker run vladistan/cb2018t5:0.1 /p/find_ips ${SLICE1} ${SLICE2}')
}

}

0 comments on commit ab850c6

Please sign in to comment.