Files
meta-zephyr/ci/jobs-to-kas
Jon Mason 93c44255a4 CI: add Gitlab CI support
Mostly stolen from meta-arm

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-07-13 11:30:44 +08:00

343 B
Executable File

#! /bin/bash

Read a GitLab CI job name on $1 and transform it to a

list of Kas yaml files

set -e -u

Read Job namne from $1 and split on /

IFS=/ read -r -a PARTS<<<$1

Prefix each part with ci/

PARTS=("${PARTS[@]/#/ci/}")

Suffix each part with .yml

PARTS=("${PARTS[@]/%/.yml}")

Print colon-separated

IFS=":" echo "${PARTS[*]}"