From d50171d130917caba8a1e0f0b4652f94323cfefe Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Wed, 6 Dec 2023 17:05:58 +0100 Subject: [PATCH] Add retry to default in GitLab CI config This commit introduces a retry parameter under the default settings in .gitlab-ci.yml to improve the robustness of CI/CD pipeline. Additionally, an unnecessary whitespace has been removed from the file to maintain neat and clean code. --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b636df23cd..8d713b5c03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,7 @@ stages: - publish default: + retry: 2 tags: - sunnypilot - x86 @@ -104,7 +105,7 @@ build: - touch ${BUILD_DIR}/prebuilt - mkdir -p ${OUTPUT_DIR} - shopt -s dotglob && mv ${BUILD_DIR}/* ${OUTPUT_DIR} - - sudo chown -R comma:comma ${OUTPUT_DIR} + - sudo chown -R comma:comma ${OUTPUT_DIR} artifacts: paths: - ${OUTPUT_DIR}/ @@ -143,8 +144,8 @@ commit changes for public branch: rules: - if: $NEW_BRANCH when: on_success - - when: never - + - when: never + publish to github: variables: GIT_SUBMODULE_STRATEGY: normal