summaryrefslogtreecommitdiffstats
path: root/utils/create-jobs.py
diff options
context:
space:
mode:
authorLoys Ollivier <lollivier@baylibre.com>2017-11-08 10:59:53 +0100
committerLoys Ollivier <lollivier@baylibre.com>2017-11-08 14:46:36 +0100
commit798580a53aa3537f0c1127ed258dab21a92f5665 (patch)
tree7910473ac2e67f30ed03ee7d0037d91c00093e32 /utils/create-jobs.py
parent94e09df869c8e6a6ed739a94fbca54348b51705f (diff)
Callback procedure update
New callback procedure. Now the arguments are: - '--callback-from' LAVA lab - '--callback-to' kCI instance This new procedure helps differentiating the lab and the kCI target. Callback config files updated accordingly. Documentation on callback updated. Change-Id: I41b9dc86e33783f1d6a8164fc783557c81678c7f Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'utils/create-jobs.py')
-rwxr-xr-xutils/create-jobs.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index 67afe4c..5a146c4 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -24,8 +24,12 @@ def parse_cmdline(machines, tests, rfs_types):
help='The version (or patchset) to generate the job for.')
parser.add_argument('--boot', action='store', dest='rfs_type',
choices=rfs_types, help='select boot type')
- parser.add_argument('--callback', action='store', dest='callback',
- help='url to notify when job is done. Please read: ./templates/callback/callback_readme.txt')
+ parser.add_argument('--callback-from', action='store', dest='callback_from',
+ help='The LAVA lab (name) that will be responsible of doing the callback. '
+ 'Please read: ./templates/callback/callback_readme.txt')
+ parser.add_argument('--callback-to', action='store', dest='callback_to',
+ help='The KernelCI instance (name) that will receive the callback from LAVA. '
+ 'Please read: ./templates/callback/callback_readme.txt')
parser.add_argument('--test', dest='tests', action='store', choices=tests + ['all'],
help="add these test to the job", nargs='*', default=[])
parser.add_argument('-o', '--output', dest='job_file', action='store',
@@ -72,7 +76,8 @@ def main():
job = ajt.render_job(url=args.url, url_branch=args.url_branch, url_version=args.url_version,
machine=args.machine, tests=args.tests, priority=args.priority,
- rfs_type=args.rfs_type, job_name=args.job_name, kci_callback=args.callback,
+ rfs_type=args.rfs_type, job_name=args.job_name,
+ lava_callback=args.callback_from, kci_callback=args.callback_to,
rfs_image=args.rootfs_img,
kernel_image=args.kernel_img,
dtb_image=args.dtb_img,