Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit d8fe082

Browse files
committed
Added loops for generating test axes.
1 parent 83fa622 commit d8fe082

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Jenkinsfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ stage('Checkout'){
5858
}
5959

6060
stage('Test'){
61-
parallel(
62-
'Python2-BASIC': { setupPythonAndTest('2.7.12', 'basic') },
63-
'Python3-BASIC': { setupPythonAndTest('3.5.2', 'basic') },
64-
'Python2-COOKIE': { setupPythonAndTest('2.7.12', 'cookie') },
65-
'Python3-COOKIE': { setupPythonAndTest('3.5.2', 'cookie') },
66-
'Python2-IAM': { setupPythonAndTest('2.7.12', 'iam') },
67-
'Python3-IAM': { setupPythonAndTest('3.5.2', 'iam') }
68-
)
61+
axes = [:]
62+
['2.7.12','3.5.2'].each { version ->
63+
['basic','cookie','iam'].each { auth ->
64+
axes.put("Python${version}-${auth}", {setupPythonAndTest(version, auth)})
65+
}
66+
}
67+
parallel(axes)
6968
}

0 commit comments

Comments
 (0)