diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /scripts/utils.sh | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'scripts/utils.sh')
-rw-r--r-- | scripts/utils.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/utils.sh b/scripts/utils.sh index 529491c3a0d..700dad58779 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -40,7 +40,7 @@ function bundle_install_script() { bundle config set path 'vendor' bundle config set clean 'true' - echo $BUNDLE_WITHOUT + echo "${BUNDLE_WITHOUT}" bundle config run_timed_command "bundle install ${BUNDLE_INSTALL_FLAGS} ${extra_install_args} && bundle check" @@ -134,3 +134,10 @@ function fail_pipeline_early() { scripts/api/cancel_pipeline.rb fi } + +function danger_as_local() { + # Force danger to skip CI source GitLab and fallback to "local only git repo". + unset GITLAB_CI + # We need to base SHA to help danger determine the base commit for this shallow clone. + bundle exec danger dry_run --fail-on-errors=true --verbose --base="${CI_MERGE_REQUEST_DIFF_BASE_SHA}" +} |