Commit 66068747 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '38378-testenv-can-t-handle-component-versions-with-a-branch-name-in-ci' into 'master'

Fix component update with branch specifiers on CI

Closes #38378

See merge request gitlab-org/gitlab-ce!14494
parents da7353d3 bc8dcbf1
...@@ -306,6 +306,9 @@ module TestEnv ...@@ -306,6 +306,9 @@ module TestEnv
ensure_component_dir_name_is_correct!(component, install_dir) ensure_component_dir_name_is_correct!(component, install_dir)
# On CI, once installed, components never need update
return if File.exist?(install_dir) && ENV['CI']
if component_needs_update?(install_dir, version) if component_needs_update?(install_dir, version)
# Cleanup the component entirely to ensure we start fresh # Cleanup the component entirely to ensure we start fresh
FileUtils.rm_rf(install_dir) FileUtils.rm_rf(install_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment