summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2024-03-22 07:42:24 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2024-03-23 09:46:27 +0000
commite0bd6c34c19f6b5cd5bb0a351cf4f97de9446e51 (patch)
tree42358fd95bb9d9c2e75bac807fa377746efbc41c
parent1ec0313f0df6ca08a60c544d97f2029602a9be29 (diff)
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: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1423>
-rwxr-xr-xci/cerbero_setup.sh17
1 files 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