--- /dev/null
+set -e
+
+test -e ${WORKSPACE}/calamari-clients-build-output.tar.gz || ( echo "no build-output
+tarball"; exit 1 )
+
+rm -f ${WORKSPACE}/calamari-clients*rpm
+
+cd ${WORKSPACE}/calamari-clients/vagrant/centos-package && vagrant destroy
+-f && vagrant up
+
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4
+4>/tmp/${BUILD_TAG}.out
+
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p'
+< /tmp/${BUILD_TAG}.out)
+
+rm /tmp/${BUILD_TAG}.out
+
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit
+1; fi
+
+vagrant destroy -f
+
+cd $WORKSPACE
+
+rm -rf $BRANCH
+
+mkdir $BRANCH
+
+mv *rpm $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: ${WORKSPACE}
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-centos'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*rpm
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*rpm
+ record-artifacts: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+set -e
+rm -f ${WORKSPACE}/calamari-clients*deb
+rm -f ${WORKSPACE}/calamari-clients-build-output.tar.gz
+cd ${WORKSPACE}/calamari-clients/vagrant/precise-build
+vagrant destroy -f && vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
+mv calamari-clients-build-output.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '10'
+ name: 'calamari-clients-precise-vagrant'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*deb, $BRANCH/calamari-clients-build-output.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*deb, $BRANCH/calamari-clients-build-output.tar.gz
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+set -e
+rm -f ${WORKSPACE}/calamari-clients*deb
+rm -f ${WORKSPACE}/calamari-clients-build-output.tar.gz
+cd $WORKSPACE
+sudo -E salt-call --local --file-root $WORKSPACE/calamari-clients/vagrant/salt/roots -l debug state.highstate
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
+mv calamari-clients-build-output.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '10'
+ name: 'calamari-clients-precise'
+ node: calamari-buildslave-precise
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*deb, $BRANCH/calamari-clients-build-output.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*deb, $BRANCH/calamari-clients-build-output.tar.gz
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: ${BRANCH}
+ url: git@github.com:red-hat-storage/romana.git
--- /dev/null
+set -e
+test -e ${WORKSPACE}/calamari-clients-build-output.tar.gz || ( echo "no build-output tarball"; exit 1 )
+rm -f ${WORKSPACE}/calamari-clients*rpm
+cd ${WORKSPACE}/calamari-clients/vagrant/rhel-package
+vagrant destroy -f
+vagrant up --no-provision
+vagrant ssh -c 'sudo subscription-manager refresh'
+vagrant ssh -c 'sudo subscription-manager list'
+vagrant provision
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *rpm $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: ${WORKSPACE}
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-rhel'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*rpm
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*rpm
+ record-artifacts: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+set -e
+test -e ${WORKSPACE}/calamari-clients-build-output.tar.gz || ( echo "no build-output tarball"; exit 1 )
+rm -f ${WORKSPACE}/calamari-clients*rpm
+cd ${WORKSPACE}/calamari-clients/vagrant/rhel7-package
+vagrant destroy -f
+vagrant up --no-provision
+#XXX rhel7 isn't yet subscribed
+#vagrant ssh -c 'sudo subscription-manager refresh'
+#vagrant ssh -c 'sudo subscription-manager list'
+vagrant provision
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *rpm $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: ${WORKSPACE}
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-rhel7'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*rpm
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*rpm
+ record-artifacts: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+set -e
+test -e ${WORKSPACE}/calamari-clients-build-output.tar.gz || ( echo "no build-output tarball"; exit 1 )
+rm -f ${WORKSPACE}/calamari-clients*rpm
+cd ${WORKSPACE}/calamari-clients/vagrant/trusty-package && vagrant destroy -f && vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: ${WORKSPACE}
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-trusty'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*deb
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*deb
+ record-artifacts: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+#!/bin/bash
+set -ex
+echo "BRANCH: ${BRANCH} DIST: $dist ARCH: $arch WORKSPACE: $WORKSPACE PWD: ${PWD}"
+ls $WORKSPACE
+rm -f $WORKSPACE/*{rpm,deb}
+ls $WORKSPACE
+cd $WORKSPACE/calamari-clients/vagrant/${dist}-package && vagrant destroy -f
+
+# CDN == PITA
+if [ ${dist:0:4} = 'rhel' ] ; then
+ vagrant up --no-provision
+ vagrant ssh -c 'sudo subscription-manager refresh; sudo subscription-manager list'
+ if [ $dist = 'rhel' ] ; then
+ vagrant ssh -c '
+ echo "
+[server]
+name=server
+enabled=1
+gpgcheck=0
+baseurl=http://apt-mirror.front.sepia.ceph.com/rhel6repo-server
+
+[server-optional]
+name=server-optional
+enabled=1
+gpgcheck=0
+baseurl=http://apt-mirror.front.sepia.ceph.com/rhel6repo-server-optional" | sudo tee /etc/yum.repos.d/local.repo'
+ vagrant ssh -c 'sudo yum clean all'
+ vagrant ssh -c 'sudo yum makecache'
+ fi
+ vagrant provision
+else
+ vagrant up
+fi
+vagrant up
+
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+rm -rf $WORKSPACE/$BRANCH
+mkdir $WORKSPACE/$BRANCH
+find $WORKSPACE -maxdepth 1 -name '*.deb' -print0 -o -name '*.rpm' -print0 -o -name 'calamari-clients.build.output.tar.gz' -print0 | xargs --verbose -0 -I'{}' mv '{}' $WORKSPACE/$BRANCH
--- /dev/null
+- job:
+ axes:
+ - axis:
+ name: arch
+ type: label-expression
+ values:
+ - x86_64
+ - axis:
+ name: dist
+ type: label-expression
+ values:
+ - centos
+ - rhel
+ - rhel7
+ - trusty
+ - wheezy
+ - axis:
+ name: label
+ type: slave
+ values:
+ - vagrant
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ exclude-pattern: ''
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: $WORKSPACE
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ combination-filter: dist != "wheezy"
+ concurrent: false
+ description: Build all the non-precise distros (which really means "package them")
+ execution-strategy:
+ run-sequentially: false
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-vagrant'
+ node: vagrant
+ parameters:
+ - string:
+ default: master
+ description: ''
+ name: BRANCH
+ project-type: matrix
+ properties:
+ - github:
+ url: https://github.com/red-hat-storage/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/$BRANCH'
+ url: git@github.com:red-hat-storage/calamari-clients.git
--- /dev/null
+set -e
+test -e ${WORKSPACE}/calamari-clients-build-output.tar.gz || ( echo "no build-output tarball"; exit 1 )
+rm -f ${WORKSPACE}/calamari-clients*deb
+cd ${WORKSPACE}/calamari-clients/vagrant/wheezy-package && vagrant destroy -f && vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise-vagrant
+ target: ${WORKSPACE}
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients-wheezy'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/calamari-clients*deb
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/calamari-clients*deb
+ record-artifacts: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: '*/${BRANCH}'
+ url: git@github.com:ceph/calamari-clients.git
--- /dev/null
+#!/bin/bash
+set -ex
+echo "BRANCH: ${BRANCH} DIST: $dist ARCH: $arch WORKSPACE: $WORKSPACE PWD: ${PWD}"
+ls $WORKSPACE
+rm -f $WORKSPACE/*{rpm,deb}
+ls $WORKSPACE
+
+sudo -E salt-call --local --file-root=$WORKSPACE/calamari-clients/vagrant/salt/roots state.highstate | \
+ multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+
+rm -rf $WORKSPACE/$BRANCH
+mkdir $WORKSPACE/$BRANCH
+find $WORKSPACE -maxdepth 1 -name '*.deb' -print0 -o -name '*.rpm' -print0 \
+ -o -name 'calamari-clients.build.output.tar.gz' -print0 | xargs --verbose -0 -I'{}' mv '{}' $WORKSPACE/$BRANCH
--- /dev/null
+- job:
+ axes:
+ - axis:
+ name: arch
+ type: label-expression
+ values:
+ - x86_64
+ - axis:
+ name: dist
+ type: label-expression
+ values:
+ - centos
+ - rhel7
+ - trusty
+ - axis:
+ name: label
+ type: slave
+ values:
+ - calamari-buildslave
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - copyartifact:
+ exclude-pattern: ''
+ filter: $BRANCH/calamari-clients-build-output.tar.gz
+ flatten: true
+ project: calamari-clients-precise
+ target: $WORKSPACE
+ which-build: last-successful
+ - shell: !include-raw ../../build/build
+ combination-filter: dist != "wheezy"
+ concurrent: false
+ description: 'Build all the non-precise distros (which really means "package them")'
+ execution-strategy:
+ run-sequentially: false
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-clients'
+ parameters:
+ - string:
+ default: master
+ description: ''
+ name: BRANCH
+ project-type: matrix
+ properties:
+ - github:
+ url: https://github.com/red-hat-storage/romana/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ scm:
+ - git:
+ basedir: calamari-clients
+ branches: $BRANCH
+ url: git@github.com:red-hat-storage/romana.git
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+echo "${SALT_BOOTSTRAP_URL}"
+rm -f ${WORKSPACE}/*rpm ${WORKSPACE}/calamari-repo-el6.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/centos-build && vagrant destroy -f
+vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *rpm $BRANCH
+mv calamari-repo-el6.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-centos'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.rpm,$BRANCH/calamari-repo-el6.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.rpm,$BRANCH/calamari-repo-el6.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+rm -f ${WORKSPACE}/*.deb ${WORKSPACE}/calamari-repo-precise.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/precise-build && vagrant destroy -f
+vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
+mv calamari-repo-precise.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-precise'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.deb,$BRANCH/calamari-repo-precise.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.deb,$BRANCH/calamari-repo-precise.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+rm -f ${WORKSPACE}/*rpm ${WORKSPACE}/calamari-repo-rhel6.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/rhel-build && vagrant destroy -f
+vagrant up --no-provision
+vagrant ssh -c 'sudo subscription-manager refresh; sudo subscription-manager list'
+vagrant provision
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *rpm $BRANCH
+mv calamari-repo-rhel6.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-rhel'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.rpm,$BRANCH/calamari-repo-rhel6.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.rpm,$BRANCH/calamari-repo-rhel6.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+rm -f ${WORKSPACE}/*rpm ${WORKSPACE}/calamari-repo-rhel7.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/rhel7-build
+vagrant destroy -f
+vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *rpm $BRANCH
+mv calamari-repo-rhel7.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '10'
+ name: 'calamari-server-rhel7'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.rpm,$BRANCH/calamari-repo-rhel7.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.rpm,$BRANCH/calamari-repo-rhel7.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+rm -f ${WORKSPACE}/*.deb ${WORKSPACE}/calamari-repo-trusty.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/trusty-build && vagrant destroy -f
+vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
+mv calamari-repo-trusty.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-trusty'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.deb,$BRANCH/calamari-repo-trusty.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.deb,$BRANCH/calamari-repo-trusty.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+#!/bin/bash
+set -ex
+echo "BRANCH: ${BRANCH} DIST: $dist ARCH: $arch WORKSPACE: $WORKSPACE PWD: ${PWD}"
+ls $WORKSPACE
+rm -f $WORKSPACE/*{rpm,deb} $WORKSPACE/calamari-repo-*.tar.gz
+ls $WORKSPACE
+cd $WORKSPACE/calamari/vagrant/${dist}-build && vagrant destroy -f
+
+# CDN == PITA
+if [ ${dist:0:4} = 'rhel' ] ; then
+ vagrant up --no-provision
+ vagrant ssh -c 'sudo subscription-manager refresh; sudo subscription-manager list'
+ vagrant provision
+else
+ vagrant up
+fi
+
+vagrant ssh -c 'mkdir ~/.pip; echo -e "[global]\nindex-url = http://apt-mirror.front.sepia.ceph.com/pypi/simple\n" >~/.pip/pip.conf'
+
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+rm -rf $WORKSPACE/$BRANCH
+mkdir $WORKSPACE/$BRANCH
+find $WORKSPACE -maxdepth 1 -name '*.deb' -print0 -o -name '*.rpm' -print0 -o -name 'calamari-repo-*.tar.gz' -print0 | xargs --verbose -0 -I'{}' mv '{}' $WORKSPACE/$BRANCH
--- /dev/null
+- job:
+ axes:
+ - axis:
+ name: arch
+ type: label-expression
+ values:
+ - x86_64
+ - axis:
+ name: dist
+ type: label-expression
+ values:
+ - centos
+ - rhel
+ - rhel7
+ - precise
+ - trusty
+ - wheezy
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ combination-filter: dist != "wheezy"
+ concurrent: false
+ description: ''
+ execution-strategy:
+ run-sequentially: false
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-vagrant'
+ node: vagrant
+ parameters:
+ - string:
+ default: master
+ description: ''
+ name: BRANCH
+ project-type: matrix
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+set -e
+echo "Building ${BRANCH}"
+rm -f ${WORKSPACE}/*.deb ${WORKSPACE}/calamari-repo-wheezy.tar.gz
+cd ${WORKSPACE}/calamari/vagrant/wheezy-build && vagrant destroy -f
+vagrant up
+vagrant ssh -c 'sudo salt-call --local state.highstate' | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+vagrant destroy -f
+cd $WORKSPACE
+rm -rf $BRANCH
+mkdir $BRANCH
+mv *deb $BRANCH
+mv calamari-repo-wheezy.tar.gz $BRANCH
--- /dev/null
+- job:
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ concurrent: false
+ description: ''
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server-wheezy'
+ node: vagrant
+ parameters:
+ - string:
+ default: ''
+ description: ''
+ name: BRANCH
+ project-type: freestyle
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*.deb,$BRANCH/calamari-repo-wheezy.tar.gz
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - fingerprint:
+ files: $BRANCH/*.deb,$BRANCH/calamari-repo-wheezy.tar.gz
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond
--- /dev/null
+#!/bin/bash
+set -ex
+echo "BRANCH: ${BRANCH} DIST: $dist ARCH: $arch WORKSPACE: $WORKSPACE PWD: ${PWD}"
+ls $WORKSPACE
+rm -f $WORKSPACE/*{rpm,deb} $WORKSPACE/calamari-repo-*.tar.gz
+ls $WORKSPACE
+
+# CDN == PITA
+if [ "${dist:0:4}" = "rhel" -a "${dist:4}" != "7" ] ; then
+ sudo subscription-manager refresh; sudo subscription-manager list
+fi
+
+sudo -E salt-call --file-root $WORKSPACE/calamari/vagrant/${dist}-build/salt/roots \
+ --local state.highstate | multitee 0-1,4 4>/tmp/${BUILD_TAG}.out
+errs=$(sed --regexp-extended -n 's/^Failed:[[:space:]]+([[:digit:]]+)/\1/p' < /tmp/${BUILD_TAG}.out)
+rm /tmp/${BUILD_TAG}.out
+if [ $errs != 0 ] ; then echo "$errs HIGHSTATE ERRORS, BUILD FAILED"; exit 1; fi
+
+rm -rf $WORKSPACE/$BRANCH
+mkdir $WORKSPACE/$BRANCH
+find $WORKSPACE/pkgs -maxdepth 1 -name '*.deb' -print0 -o -name '*.rpm' -print0 \
+ -o -name 'calamari-repo-*.tar.gz' -print0 | xargs --verbose -0 -I'{}' mv '{}' $WORKSPACE/$BRANCH
--- /dev/null
+- job:
+ axes:
+ - axis:
+ name: arch
+ type: label-expression
+ values:
+ - x86_64
+ - axis:
+ name: dist
+ type: label-expression
+ values:
+ - centos
+ - rhel
+ - rhel7
+ - precise
+ - trusty
+ - wheezy
+ - axis:
+ name: label
+ type: slave
+ values:
+ - calamari-buildslave
+ block-downstream: false
+ block-upstream: false
+ builders:
+ - shell: !include-raw ../../build/build
+ combination-filter: dist != 'wheezy' && dist != 'rhel'
+ concurrent: false
+ description: ''
+ execution-strategy:
+ run-sequentially: false
+ logrotate:
+ artifactDaysToKeep: '-1'
+ artifactNumToKeep: '-1'
+ daysToKeep: '-1'
+ numToKeep: '-1'
+ name: 'calamari-server'
+ node: calamari-buildslave
+ parameters:
+ - string:
+ default: master
+ description: ''
+ name: BRANCH
+ project-type: matrix
+ properties:
+ - github:
+ url: https://github.com/ceph/calamari/
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: $BRANCH/*
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - description-setter:
+ description: \1
+ regexp: 'BRANCH: (\S+)'
+ regexp-for-failed: ''
+ set-for-matrix: false
+ scm:
+ - git:
+ basedir: Diamond
+ branches: '*/calamari'
+ url: git@github.com:ceph/Diamond