File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 5
5
checkout scm
6
6
7
7
stage ' Build and test'
8
+ List<String > javas = [' 7' , ' 8' ]
8
9
List<String > plugins = [' base' , ' war' , ' jar' ]
9
10
Map parallelSteps = [:]
10
11
11
- for (int i = 0 ; i < plugins. size(); i++ ) {
12
- def plugin = " jruby-gradle-${ plugins.get(i)} -plugin"
13
- parallelSteps[plugin] = {
14
- node(' docker' ) {
15
- checkout scm
16
- docker. image(' java:8-jdk' ). inside {
17
- timeout(30 ) {
18
- sh " ./gradlew -Si ${ plugin} :check ${ plugin} :gradleTest ${ plugin} :assemble"
12
+ for (int j = 0 ; j < javas. size(); j++ ) {
13
+ for (int i = 0 ; i < plugins. size(); i++ ) {
14
+ def javaVersion = " ${ javas.get(j)} -jdk"
15
+ def plugin = " jruby-gradle-${ plugins.get(i)} -plugin"
16
+ parallelSteps[" ${ javaVersion} -${ plugin} " ] = {
17
+ node(' docker' ) {
18
+ checkout scm
19
+ docker. image(" java:${ javaVersion} " ). inside {
20
+ timeout(30 ) {
21
+ sh " ./gradlew -Si ${ plugin} :check ${ plugin} :gradleTest ${ plugin} :assemble"
22
+ }
19
23
}
24
+ junit ' build/test-results/**/*.xml'
25
+ archiveArtifacts artifacts : ' build/libs/*.jar,build/*.zip' , fingerprint : true
20
26
}
21
- junit ' build/test-results/**/*.xml'
22
- archiveArtifacts artifacts : ' build/libs/*.jar,build/*.zip' , fingerprint : true
23
27
}
24
28
}
25
29
}
You can’t perform that action at this time.
0 commit comments