diff --git a/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml b/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml new file mode 100644 index 0000000000..d07b957c8d --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/mirror.yaml @@ -0,0 +1,35 @@ +- job: + name: 'periodic-mirror-python26' + node: mirror26 + + triggers: + - timed: '4 21 * * *' + + builders: + - shell: | + #!/bin/bash -xe + /usr/local/bin/run-mirror -c /home/jenkins/pypimirror/etc/pypi-mirror.yaml + find /home/jenkins/pypimirror/mirror/ \( -name index.html -or -name full.html \) -delete + rsync -a --ignore-existing /home/jenkins/pypimirror/mirror/ jenkins@static.openstack.org:/srv/static/pypi/ + + publishers: + - link-logs + - console-log-periodic + +- job: + name: 'periodic-mirror-python27' + node: mirror27 + + triggers: + - timed: '12 21 * * *' + + builders: + - shell: | + #!/bin/bash -xe + /usr/local/bin/run-mirror -c /home/jenkins/pypimirror/etc/pypi-mirror.yaml + find /home/jenkins/pypimirror/mirror/ \( -name index.html -or -name full.html \) -delete + rsync -a --ignore-existing /home/jenkins/pypimirror/mirror/ jenkins@static.openstack.org:/srv/static/pypi/ + + publishers: + - link-logs + - console-log-periodic