aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-04-09 07:58:04 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-04-09 10:58:30 +0000
commit908f57f1b08a3e69640b626ce21930bb53f1dfc6 (patch)
tree53252a73f064a6ce0106a7dc60bb49f7a79b7ffa
parent7ee541893a04a7be8fc00a7d376b87fc54a2d4ae (diff)
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 <clabbe@baylibre.com> (cherry picked from commit a3ce9247a57ff7f9a4fc47ccddab23d7a84672af)
-rwxr-xr-xutils/agl-publish.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/agl-publish.py b/utils/agl-publish.py
index 3bbf8e6..0710beb 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()
@@ -50,7 +51,10 @@ else:
bmeta["git_describe"] = 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)