Skip to content
Snippets Groups Projects
Commit cf0071f2 authored by Andrii Sosiuk's avatar Andrii Sosiuk
Browse files

YT-234: Fix ci-test pipelines (was broken with YT-65 MR)

 The YT-65 MR refactored the repo_checkout job,
 which is also used in CI-test pipelines.
 Added the necessary changes to the CI-test code.
parent 667964a6
No related branches found
No related tags found
1 merge request!420YT-234: Fix ci-test pipelines broken after YT-65 MR
Pipeline #153937 passed with stage
in 2 minutes and 11 seconds
...@@ -17,7 +17,7 @@ stages: ...@@ -17,7 +17,7 @@ stages:
# Stage: Build # Stage: Build
# -------------------------------------------------------------------------------------- # --------------------------------------------------------------------------------------
.build: &build .build: &build
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}/repo_checkout
- VERSION=$(cd .repo/manifests && git describe --tags) - VERSION=$(cd .repo/manifests && git describe --tags)
- cat .repo/manifests/default.xml - cat .repo/manifests/default.xml
- find foo -name "[0-9]*.txt" -printf '%P\n' | sort -V > files-foo-$VERSION.txt - find foo -name "[0-9]*.txt" -printf '%P\n' | sort -V > files-foo-$VERSION.txt
...@@ -36,14 +36,15 @@ build:files: ...@@ -36,14 +36,15 @@ build:files:
tags: tags:
- infrastructure - infrastructure
needs: [] needs: []
timeout: 2m timeout: 4m
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
MANIFEST_FILE: "default.xml"
before_script: before_script:
- !reference [.docker_check] - !reference [.docker_check]
- !reference [.setup_ssh] - !reference [.setup_ssh]
- !reference [.setup_git_credentials] - !reference [.setup_git_credentials]
- !reference [.repo_checkout] - !reference [.repo_checkout, script]
script: script:
- *build - *build
artifacts: artifacts:
...@@ -55,7 +56,7 @@ build:echo: ...@@ -55,7 +56,7 @@ build:echo:
tags: tags:
- infrastructure - infrastructure
needs: [] needs: []
timeout: 2m timeout: 4m
image: ${CI_IMAGE_PYTHON} image: ${CI_IMAGE_PYTHON}
script: script:
- printenv - printenv
...@@ -68,14 +69,15 @@ build:check-foo-branch: ...@@ -68,14 +69,15 @@ build:check-foo-branch:
tags: tags:
- infrastructure - infrastructure
needs: [] needs: []
timeout: 2m timeout: 4m
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
MANIFEST_FILE: "default.xml"
before_script: before_script:
- !reference [.docker_check] - !reference [.docker_check]
- !reference [.setup_ssh] - !reference [.setup_ssh]
- !reference [.setup_git_credentials] - !reference [.setup_git_credentials]
- !reference [.repo_checkout] - !reference [.repo_checkout, script]
script: | script: |
echo "repo branch: $MASTER_BRANCH" echo "repo branch: $MASTER_BRANCH"
echo "foo branch: $(cat foo/branch.txt)" echo "foo branch: $(cat foo/branch.txt)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment