Skip to content
Snippets Groups Projects
Unverified Commit c60f6ade authored by Stephan Breitrainer's avatar Stephan Breitrainer
Browse files

Remove retry, as it has to be an integer and won't work with variables

parent 8267ceee
No related branches found
No related tags found
No related merge requests found
Pipeline #15287982 passed
Loading
Loading
@@ -3,16 +3,13 @@ shellcheck:
needs: []
variables:
IMAGE_TAG: "v${GL_ASDF_SHELLCHECK_VERSION}"
RETRY: 0
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: '$CI_PROJECT_NAME == "common-ci-tasks" && $CI_PIPELINE_SOURCE == "merge_request_event"'
variables:
IMAGE_TAG: "$CI_COMMIT_REF_SLUG"
RETRY: 2
image:
name: registry.gitlab.com/gitlab-com/gl-infra/common-ci-tasks/shellcheck:${IMAGE_TAG}
retry: ${RETRY}
script:
- (
find . -type f \( -perm -u=x -not -name "*.sh" \) -not -path "*/.*/*" -print0 | xargs -0 grep -rIzlE '^#![[:blank:]]*(/usr/bin/env sh|/usr/bin/env bash|/bin/sh|/bin/bash)';
Loading
Loading
Loading
Loading
@@ -3,16 +3,13 @@ shfmt:
needs: []
variables:
IMAGE_TAG: "v${GL_ASDF_SHFMT_VERSION}"
RETRY: 0
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: '$CI_PROJECT_NAME == "common-ci-tasks" && $CI_PIPELINE_SOURCE == "merge_request_event"'
variables:
IMAGE_TAG: "$CI_COMMIT_REF_SLUG"
RETRY: 2
image:
name: registry.gitlab.com/gitlab-com/gl-infra/common-ci-tasks/shfmt:${IMAGE_TAG}
retry: ${RETRY}
script:
# Find all *.sh files, and any executable script files
- (
Loading
Loading
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