From e0bd6c34c19f6b5cd5bb0a351cf4f97de9446e51 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 22 Mar 2024 07:42:24 +0530 Subject: ci: Add recipes_{commits,remotes} entries for gst-plugins-rs This allows gst-plugins-rs to trigger cerbero CI, which will use the deps cache and build the specified gst-plugins-rs remote and commit. Part-of: --- ci/cerbero_setup.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ci/cerbero_setup.sh b/ci/cerbero_setup.sh index 7c558ef8..ff29e1f8 100755 --- a/ci/cerbero_setup.sh +++ b/ci/cerbero_setup.sh @@ -76,8 +76,21 @@ cerbero_before_script() { if [[ "x${FDO_CI_CONCURRENT}" != "x" ]]; then echo "num_of_cpus = ${FDO_CI_CONCURRENT}" >> localconf.cbc fi - echo "recipes_commits = {'gstreamer-1.0': 'ci/${CI_GSTREAMER_REF_NAME}'}" >> localconf.cbc - echo "recipes_remotes = {'gstreamer-1.0': {'ci': '${CI_GSTREAMER_URL}'}}" >> localconf.cbc + + # These vars are set for pipelines via trigger_cerbero_pipeline.py in + # gstreamer and gst-plugins-rs CI + echo "recipes_commits = {" >> localconf.cbc + echo " 'gstreamer-1.0': 'ci/${CI_GSTREAMER_REF_NAME}'," >> localconf.cbc + if [[ -n $CI_GST_PLUGINS_RS_REF_NAME ]]; then + echo " 'gst-plugins-rs-1.0': 'ci/${CI_GST_PLUGINS_RS_REF_NAME}'," >> localconf.cbc + fi + echo "}" >> localconf.cbc + echo "recipes_remotes = {" >> localconf.cbc + echo " 'gstreamer-1.0': {'ci': '${CI_GSTREAMER_URL}'}," >> localconf.cbc + if [[ -n $CI_GST_PLUGINS_RS_URL ]]; then + echo " 'gst-plugins-rs-1.0': {'ci': '${CI_GST_PLUGINS_RS_URL}'}," >> localconf.cbc + fi + echo "}" >> localconf.cbc cat localconf.cbc # GitLab runner does not always wipe the image after each job, so do that -- cgit v1.2.3