Skip to content

Commit 1b95481

Browse files
committed
Next iteration for jtreg
1 parent b835fe7 commit 1b95481

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

jenkins-job-generator/definitions/jtreg-job.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212
name: TAG
1313
default: 'master'
1414
description: 'The tag/branch to build.'
15-
- string:
16-
name: BUILD_VERSION
17-
default: '9.9'
18-
description: 'Manually set the JTREG version. Only used when TAG parameter is "master".'
1915
- string:
2016
name: BUILD_NUMBER
2117
default: '99'
22-
description: 'Manually set the JTREG build number. Only used when TAG parameter is "master".'
18+
description: 'Manually set the JTREG build number. Only used when TAG parameter does not contain a build number.'
2319
dsl: |
2420
pipeline {
2521
agent {
@@ -44,7 +40,7 @@
4440
def jtregVersion
4541
def jtregBuild
4642
if (params.TAG == "master") {
47-
jtregVersion = params.BUILD_VERSION
43+
jtregVersion = 99 // just a dummy
4844
jtregBuild = params.BUILD_NUMBER
4945
} else {
5046
def match = params.TAG =~ /jtreg-*([0-9]+(\.[0-9]+)*)((\+|-b)([0-9]+))*/
@@ -57,14 +53,12 @@
5753
}
5854
}
5955
if (jtregVersion.toFloat() < 6) {
56+
env.BUILD_SCRIPT = "build-all.sh"
6057
env.BUILD_VERSION = jtregVersion
6158
env.BUILD_NUMBER = jtregBuild
62-
env.BUILD_SCRIPT = "build-all.sh"
63-
env.VM_OPT = ""
6459
} else {
65-
env.JTREG_VERSION = jtregVersion
66-
env.JTREG_BUILD_NUMBER = jtregBuild
6760
env.BUILD_SCRIPT = "build.sh"
61+
env.JTREG_BUILD_NUMBER = jtregBuild
6862
env.VM_OPT = "--jdk"
6963
}
7064
}

0 commit comments

Comments
 (0)