Below is my YML file structure. I want the following up stages to be run without reinitializing the git repository. The git repository should only be initialized during the first stage, which is the build stage.
variables:
GIT_STRATEGY: fetch
stages:
- build
- run_test
- run_test2
build_job:
variables:
test_env: "test"
stage: build
script:
- "powershell -File ./Scripts/BuildSolution.ps1"
only:
refs:
- TDD-G2
run_test:
variables:
test_env: "test"
stage: run_test
script:
- "powershell -File ./Project1/scripts/RunSelenium.ps1"
artifacts:
when: always
paths:
- ./Project1/TestResults
run_test2:
variables:
test_env: "test"
stage: run_test2
script:
- "powershell -File ./Project2/scripts/RunSelenium.ps1"
artifacts:
when: always
paths:
- ./Project2/TestResults