Merge "Clone repositories for test-build jobs with zuul-cloner"
This commit is contained in:
commit
48ecf3c143
|
@ -4,7 +4,7 @@
|
|||
- job-template:
|
||||
name: test-{os_version}-build-{name}
|
||||
builders:
|
||||
- get-from-zuul-container
|
||||
- zuul-clone
|
||||
- build-image-branch:
|
||||
name: '{name}'
|
||||
repos: '{repos}'
|
||||
|
@ -15,6 +15,7 @@
|
|||
node: standard
|
||||
wrappers:
|
||||
- ng-cleanup
|
||||
- fuel-ccp-ci-jenkins
|
||||
triggers:
|
||||
- zuul
|
||||
properties:
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
rep=`ssh -o StrictHostKeyChecking=no -p 29418 mirantis-fuel-ccp-ci@review.openstack.org gerrit ls-projects | grep "fuel-ccp-"| tr '\n' ' '`
|
||||
|
||||
tee -a clonemap.yaml << EOF
|
||||
clonemap:
|
||||
- name: openstack/fuel-ccp
|
||||
dest: fuel-ccp
|
||||
EOF
|
||||
|
||||
for f in ${rep}; do
|
||||
tee -a clonemap.yaml << EOF
|
||||
- name: ${f}
|
||||
dest: containers/${f/fuel-ccp-/}
|
||||
EOF
|
||||
done
|
||||
|
||||
source /home/jenkins/venv-zuul/bin/activate
|
||||
zuul-cloner -m clonemap.yaml ssh://mirantis-fuel-ccp-ci@review.openstack.org:29418 openstack/fuel-ccp ${rep}
|
||||
deactivate
|
|
@ -63,7 +63,7 @@
|
|||
wrappers:
|
||||
- ssh-agent-credentials:
|
||||
users:
|
||||
- '77acc946-f346-4665-8271-c141b6ae9764'
|
||||
- '623272f1-bc9a-4c75-93f3-b7ec6f242581'
|
||||
|
||||
- wrapper:
|
||||
name: fuel-ccp-ci-docs
|
||||
|
@ -125,6 +125,11 @@
|
|||
builders:
|
||||
- shell: !include-raw: builders/build-image-branch.sh
|
||||
|
||||
- builder:
|
||||
name: zuul-clone
|
||||
builders:
|
||||
- shell: !include-raw: builders/clone-with-zuul.sh
|
||||
|
||||
- builder:
|
||||
name: get-from-zuul-container
|
||||
builders:
|
||||
|
|
Loading…
Reference in New Issue