Skip to content
Permalink
Browse files

Setup a matrix job

  • Loading branch information...
vladistan committed Jan 6, 2019
1 parent 4fa302e commit ab850c6a8cb0bb9432534eb61aca9fda17838776
Showing with 28 additions and 5 deletions.
  1. +28 −5 test.groovy
@@ -1,8 +1,3 @@
job('test-job') {



}

job("drain-job") {
label('cb2018')
@@ -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.
You can’t perform that action at this time.