From dbe39079eefd9e38641aae3462e244b92669b9fd Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 29 May 2020 14:30:26 +0300 Subject: [PATCH] ci_template: windows: clone the gst-build specified in the manifest In all our other builds, we are using the clone_manifest_ref script to fetch the revision of gst-build that we discover in the manifest. For the windows job this was missed it seems, but didn't cause any issues till now cause it only affected the gst-build MRs. Part-of: --- gitlab/ci_template.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index f6eaadd..617c96a 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -478,8 +478,10 @@ valgrind ges: # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6 - $ErrorActionPreference = "Stop" - - git clone -b $GST_UPSTREAM_BRANCH https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR\gst-build + - Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py + - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build - cd $env:CI_PROJECT_DIR/gst-build + - cp -r C:/subprojects/* subprojects/ # Run the git-update script and feed it the manifest to setup the environment - cd $env:CI_PROJECT_DIR/gst-build; python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml @@ -533,8 +535,10 @@ build msys2 : - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm" - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja" - - git clone -b $GST_UPSTREAM_BRANCH https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR\gst-build - - cd $env:CI_PROJECT_DIR\gst-build + - Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py + - python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build + - cd $env:CI_PROJECT_DIR/gst-build + - cp -r C:\subprojects\* subprojects\ # Run the git-update script and feed it the manifest to setup the environment -- 2.7.4