File tree Expand file tree Collapse file tree
jenkins-job-generator/definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
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]+))*/
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 }
You can’t perform that action at this time.
0 commit comments