summaryrefslogtreecommitdiffstats
path: root/utils/create-jobs.py
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-06-02 20:17:35 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-06-02 20:17:35 +0200
commitb7b65449c824bc5cd7fdd0fba4a190fb47090e68 (patch)
tree8530ca153e28525efee561f836fba56539d4f410 /utils/create-jobs.py
parent99f8e91d6641505e85528ca6e85b88a36888f9e6 (diff)
Add prerelease type to generatorjellyfish_9.99.1jellyfish/9.99.19.99.1
Allow the tool to generate jobs against the prerelease location. Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I7f00ee52ad85b2aecc52679da4e98857a5dd59cb
Diffstat (limited to 'utils/create-jobs.py')
-rwxr-xr-xutils/create-jobs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index 28eb643..b2a7363 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -19,7 +19,7 @@ def parse_cmdline(machines, tests, rfs_types):
parser.add_argument('--url', '-u', action='store', dest='url',
help="If using a custom URL specify it there. The files will be fetched from this URL.")
parser.add_argument('--build-type', dest='build_type', action='store',
- help="The type of build, can be one of: {'ci', 'daily', 'weekly', 'release'}.",
+ help="The type of build, can be one of: {'ci', 'daily', 'weekly', 'release', 'prerelease'}.",
default="default")
parser.add_argument('--branch', dest='vcs_branch', action='store',
help='The build branch.')
@@ -81,7 +81,11 @@ def parse_cmdline(machines, tests, rfs_types):
if (args.build_type == "release") and not args.url:
if (not args.vcs_branch) or (not args.version):
- parser.error("when using '--build-type' '--branch' and '--versiom' arguments needs to be set.")
+ parser.error("when using '--build-type' '--branch' and '--version' arguments needs to be set.")
+
+ if (args.build_type == "prerelease") and not args.url:
+ if (not args.vcs_branch) or (not args.version):
+ parser.error("when using '--build-type' '--branch' and '--version' arguments needs to be set.")
return args