6dbbc488d2
* zuul/merger.py: Previously zuul's merger only checked an initialized flag to determine if a repo should be cloned. If the state of the disk changes under zuul the repo may need to be recloned even if the initialized flag is set. Check if the repo exists on disk to determine if the repo should be cloned to deal with external state changes. Keep initialized flag in order to preserve ability to change git repo settings for user and email. * tests/test_scheduler.py: Add a test that checks a repo is recloned when removed from the filesystem under zuul. * tests/fixtures/layout-repo-deleted.yaml: Layout fixture for new test added above. This creates a new repo unused by any other tests so that failures of this test do not interfere with other tests, they will run independent of each other. Change-Id: I14fb34a2916002cefef73e41ec9182a073d59ef3
53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
pipelines:
|
|
- name: check
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: patchset-created
|
|
success:
|
|
gerrit:
|
|
verified: 1
|
|
failure:
|
|
gerrit:
|
|
verified: -1
|
|
|
|
- name: post
|
|
manager: IndependentPipelineManager
|
|
trigger:
|
|
gerrit:
|
|
- event: ref-updated
|
|
ref: ^(?!refs/).*$
|
|
|
|
- name: gate
|
|
manager: DependentPipelineManager
|
|
failure-message: Build failed. For information on how to proceed, see http://wiki.example.org/Test_Failures
|
|
trigger:
|
|
gerrit:
|
|
- event: comment-added
|
|
approval:
|
|
- approved: 1
|
|
success:
|
|
gerrit:
|
|
verified: 2
|
|
submit: true
|
|
failure:
|
|
gerrit:
|
|
verified: -2
|
|
start:
|
|
gerrit:
|
|
verified: 0
|
|
precedence: high
|
|
|
|
projects:
|
|
- name: org/delete-project
|
|
check:
|
|
- project-merge:
|
|
- project-test1
|
|
- project-test2
|
|
gate:
|
|
- project-merge:
|
|
- project-test1
|
|
- project-test2
|
|
post:
|
|
- project-post
|