From 1be69f3df0b47f287eae1830984105096a6afaed Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Fri, 9 Apr 2021 07:58:04 +0000 Subject: SPEC-3414: Permit to choose file server ressource Permit to choose "file server ressource" path. Change-Id: I5e24972ada0651c3021f66179e9b4b292730a460 Bug-AGL: SPEC-3414 Signed-off-by: Corentin LABBE --- utils/agl-publish.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/agl-publish.py b/utils/agl-publish.py index 2128c53..93dc081 100755 --- a/utils/agl-publish.py +++ b/utils/agl-publish.py @@ -13,6 +13,7 @@ parser.add_argument('--branch', action='store', help="branch of the build", requ parser.add_argument('--commit', action='store', help="commit of the build", required=True) parser.add_argument('--build_version', action='store', help="build_version of the build", required=True) parser.add_argument('--kernel_version', action='store', help="kernel_version of the build", default=None) +parser.add_argument('--fsr', action='store', help="File Server Resource path", default=None) parser.add_argument('--machine', action='store', help="machine of the build", required=True) parser.add_argument('--api', action='store', help="URL to kernelci backend API", required=True) args = parser.parse_args() @@ -52,7 +53,10 @@ else: bmeta["git_describe_v"] = args.branch bmeta["job"] = "AGL-yocto" -fsr = "AGL-yocto/%s/%s/%s/" % (args.branch, args.build_version, args.machine) +if args.fsr: + fsr = args.fsr +else: + fsr = "AGL-yocto/%s/%s/%s/" % (args.branch, args.build_version, args.machine) bmeta["file_server_resource"] = fsr print(bmeta) -- cgit 1.2.3-korg