diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/sequence.rb | 5 | ||||
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/validate/repository.rb | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/sequence.rb b/lib/gitlab/ci/pipeline/chain/sequence.rb index c80d583939c..015f2988327 100644 --- a/lib/gitlab/ci/pipeline/chain/sequence.rb +++ b/lib/gitlab/ci/pipeline/chain/sequence.rb @@ -18,7 +18,7 @@ module Gitlab break if step.break? - @completed << true + @completed << step end @pipeline.tap do @@ -27,8 +27,7 @@ module Gitlab end def complete? - @completed.size == @sequence.size && - @completed.all? + @completed.size == @sequence.size end end end diff --git a/lib/gitlab/ci/pipeline/chain/validate/repository.rb b/lib/gitlab/ci/pipeline/chain/validate/repository.rb index 9d328c9cedb..70a4cfdbdea 100644 --- a/lib/gitlab/ci/pipeline/chain/validate/repository.rb +++ b/lib/gitlab/ci/pipeline/chain/validate/repository.rb @@ -14,8 +14,6 @@ module Gitlab ## TODO, we check commit in the service, that is why # there is no repository access here. # - # Should we validate repository before building a pipeline? - # unless pipeline.sha return error('Commit not found') end |