GitLab CI: Update merge-req:windows.

Use a regex to match the project URL and add 'when: always'.
This commit is contained in:
Gerald Combs 2020-12-10 11:04:37 -08:00 committed by Wireshark GitLab Utility
parent 42a09ad02e
commit 081f78e8dd
1 changed files with 5 additions and 2 deletions

View File

@ -307,10 +307,13 @@ merge-req:windows:
- wireshark-windows-dev
stage: build
rules:
# The Windows Docker image is currently only available via a dedicated runner.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_URL == "https://gitlab.com/wireshark/wireshark"'
# The wireshark-windows-dev image is only available via a dedicated runner.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_PROJECT_URL =~ /.*gitlab.com\/wireshark\/wireshark/'
when: always
before_script:
# XXX Find a better location.
- cmd.exe /c "set CI_PIPELINE_SOURCE"
- cmd.exe /c "set CI_PROJECT_URL"
- mkdir c:\Development
- $env:WIRESHARK_BASE_DIR = "C:\Development"
- $env:Configuration = "RelWithDebInfo"