Fix LOCI jobs
The tarball was not being created properly [0] due to missing the
gerrit-git-prep builder that clones the repo. This patch adds in the
proper builder to these jobs.
[0]
- print-template-name:
template-name: '{template-name}'
- link-logs
+ - zuul-git-prep
- clone-loci
- shell: |
#!/bin/bash -xe
builders:
- print-template-name:
template-name: '{template-name}'
- - clone-loci
+ - zuul-git-prep
- shell: |
#!/bin/bash -xe
+ tar cvfz {name}.tar.gz --exclude .git .
+
/usr/local/jenkins/slave_scripts/version-properties.sh
source version.properties
mkdir dist
- tar cvfz dist/{name}-$PROJECT_VER.tar.gz -C openstack/loci scripts
- if [[ "$ZUUL_BRANCH" == 'master' ]]; then
- cp dist/* dist/{name}-latest.tar.gz
- fi
+ mv {name}.tar.gz dist/{name}-$PROJECT_VER.tar.gz
publishers:
- tarball
