Skip to content
Snippets Groups Projects
Commit 37200614 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

build-common: add group headers

parent bdc50deb
No related branches found
No related tags found
1 merge request!219CI-test build: improve build simulation
...@@ -5,6 +5,9 @@ workflow: ...@@ -5,6 +5,9 @@ workflow:
# the parent job seem to be used and prevent the pipeline generation # the parent job seem to be used and prevent the pipeline generation
- if: $CI_PIPELINE_SOURCE == "parent_pipeline" - if: $CI_PIPELINE_SOURCE == "parent_pipeline"
# --------------------------------------------------------------------------------------
# Scripts
# --------------------------------------------------------------------------------------
.docker_check: .docker_check:
# Check if the build folder is empty. Sometimes the docker volume for the build is not # Check if the build folder is empty. Sometimes the docker volume for the build is not
# removed afterwards (e.g. in case of a timeout), then a follow-up build might fail. # removed afterwards (e.g. in case of a timeout), then a follow-up build might fail.
...@@ -40,7 +43,7 @@ workflow: ...@@ -40,7 +43,7 @@ workflow:
- echo "$GITLAB_KNOWN_HOSTS" >> ~/.ssh/known_hosts - echo "$GITLAB_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
.repo_checkout: &repo_checkout .repo_checkout:
- echo "${LOGPREFIX} Perform repo checkout" - echo "${LOGPREFIX} Perform repo checkout"
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}
- repo init --submodules -u ${CI_REPOSITORY_URL} - repo init --submodules -u ${CI_REPOSITORY_URL}
...@@ -48,6 +51,9 @@ workflow: ...@@ -48,6 +51,9 @@ workflow:
- repo sync --detach --current-branch --force-remove-dirty - repo sync --detach --current-branch --force-remove-dirty
--optimized-fetch --force-sync --optimized-fetch --force-sync
# --------------------------------------------------------------------------------------
# Stage: build
# --------------------------------------------------------------------------------------
.buildbase: .buildbase:
tags: tags:
- builds - builds
...@@ -67,6 +73,9 @@ workflow: ...@@ -67,6 +73,9 @@ workflow:
artifacts: artifacts:
expire_in: 4 weeks expire_in: 4 weeks
# --------------------------------------------------------------------------------------
# Stage: test
# --------------------------------------------------------------------------------------
.test: .test:
extends: extends:
- .infrastructure - .infrastructure
......
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