Set DISTRIBUTION_TYPE to choice 81/61781/1
authorThanh Ha <zxiiro@gmail.com>
Thu, 19 Sep 2019 16:17:37 +0000 (12:17 -0400)
committerThanh Ha <zxiiro@gmail.com>
Thu, 19 Sep 2019 16:17:39 +0000 (12:17 -0400)
As for as I can tell from the release_job.sh file there are only 3
valid options "None" as the default and choices are container or maven.

Set parameter to choices to help the user of the job select the right
option.

Change-Id: I587d63103011b9f42252a58ce3a79c44b46ceefd
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
jjb/lf-macros.yaml

index 2dd6570..6a2ea52 100644 (file)
           name: LOG_DIR
           default: ""
           description: "Log dir, example: project-maven-stage-master/17/"
-      - string:
+      - choice:
           name: DISTRIBUTION_TYPE
-          default: ""
-          description: "Set to maven for build with parametes"
+          choices:
+            - None
+            - container
+            - maven
+          description: "Set to maven for build with parameters"
       - bool:
           name: USE_RELEASE_FILE
           default: "{use-release-file}"