From e3a2753a0587d0cbd8ba6abcafb3114b23dbeab5 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 27 Aug 2015 15:46:17 -0600 Subject: [PATCH] import takora Start building upstream packages for https://github.com/ceph/takora --- takora/build/build | 36 +++++++++++++++++++ takora/config/definitions/takora.yml | 53 ++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 takora/build/build create mode 100644 takora/config/definitions/takora.yml diff --git a/takora/build/build b/takora/build/build new file mode 100644 index 00000000..341de2de --- /dev/null +++ b/takora/build/build @@ -0,0 +1,36 @@ +#/bin/bash -ex + +echo "BRANCH: $BRANCH" +cd $WORKSPACE/takora + +DEBIAN=0 + +if [ $Dist = 'trusty' -o $Dist = 'precise' -o $Dist = 'wheezy' ] ; then + DEBIAN=1 +fi + +if [ $DEBIAN = 1 ] ; then + dpkg-buildpackage -us -uc +else + python ./setup.py sdist + + RPMBUILD=$WORKSPACE/rpmbuild + mkdir -p $RPMBUILD/{SOURCES,SRPMS,SPECS,RPMS,BUILD} + cp -a dist/takora*.tar.gz $RPMBUILD/SOURCES/. + cp -a takora.spec $RPMBUILD/SPECS/. + + cd $RPMBUILD + rpmbuild -ba --define "_topdir $RPMBUILD" SPECS/takora.spec +fi + +cd $WORKSPACE +rm -rf $BRANCH +mkdir $BRANCH + +if [ $DEBIAN = 1 ] ; then + mv *.deb *.dsc *.changes *.tar.gz $BRANCH +else + find rpmbuild -name '*.rpm' -o -name '*.srpm' | xargs -i mv {} $BRANCH +fi + +exit 0 diff --git a/takora/config/definitions/takora.yml b/takora/config/definitions/takora.yml new file mode 100644 index 00000000..0a8497e7 --- /dev/null +++ b/takora/config/definitions/takora.yml @@ -0,0 +1,53 @@ +- job: + name: takora + description: Build and package takora + project-type: matrix + axes: + - axis: + name: Arch + type: label-expression + values: + - x86_64 + - axis: + name: Dist + type: label-expression + values: + - trusty + - centos + block-downstream: false + block-upstream: false + + properties: + - github: + url: https://github.com/ceph/takora/ + + scm: + - git: + skip-tag: true + url: https://github.com/ceph/takora + branches: + - $BRANCH + + execution-strategy: + run-sequentially: false + + builders: + - shell: + !include-raw ../../build/build + concurrent: false + parameters: + - string: + default: master + description: 'The git branch or tag to build' + name: BRANCH + + publishers: + - archive: + allow-empty: false + artifacts: $BRANCH/* + default-excludes: true + fingerprint: false + only-if-success: false + - description-setter: + regexp: '^BRANCH: (\S+)' + set-for-matrix: false -- 2.39.5