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.
This commit is contained in:
DevTekVE
2023-12-06 17:05:58 +01:00
parent 84c7b3322a
commit d50171d130
+4 -3
View File
@@ -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