]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
import ice-setup 113/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 19:08:06 +0000 (13:08 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 19:46:27 +0000 (13:46 -0600)
Migrate the ice-setup job from our internal jenkins-calamari server to
jenkins.ceph.com.

ice-setup/build/build [new file with mode: 0644]
ice-setup/config/definitions/ice-setup.yml [new file with mode: 0644]

diff --git a/ice-setup/build/build b/ice-setup/build/build
new file mode 100644 (file)
index 0000000..d1e6628
--- /dev/null
@@ -0,0 +1,36 @@
+#/bin/bash -ex
+
+echo "BRANCH: $BRANCH"
+cd $WORKSPACE/ice-setup
+
+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/ice_setup*.tar.gz  $RPMBUILD/SOURCES/.
+    cp -a ice_setup.spec $RPMBUILD/SPECS/.
+
+    cd $RPMBUILD
+    rpmbuild -ba --define "_topdir $RPMBUILD" SPECS/ice_setup.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/ice-setup/config/definitions/ice-setup.yml b/ice-setup/config/definitions/ice-setup.yml
new file mode 100644 (file)
index 0000000..25d4d44
--- /dev/null
@@ -0,0 +1,55 @@
+- job:
+    axes:
+    - axis:
+        name: Arch
+        type: label-expression
+        values:
+        - x86_64
+    - axis:
+        name: Dist
+        type: label-expression
+        values:
+        - trusty
+        - precise
+        - centos
+    block-downstream: false
+    block-upstream: false
+    builders:
+    - shell:
+        !include-raw ../../build/build
+    concurrent: false
+    description: Build ice-setup as a package for Red Hat Ceph, non-Red Hat releases
+    disabled: false
+    execution-strategy:
+      run-sequentially: false
+    keep-dependencies: false
+    name: ice-setup
+    parameters:
+    - string:
+        default: master
+        description: ''
+        name: BRANCH
+    project-type: matrix
+    properties:
+    - github:
+        url: https://github.com/ceph/ice-setup/
+    publishers:
+    - archive:
+        allow-empty: false
+        artifacts: $BRANCH/*
+        default-excludes: true
+        fingerprint: false
+        only-if-success: false
+    - description-setter:
+        regexp: '^BRANCH: (\S+)'
+        regexp-for-failed: null
+        set-for-matrix: false
+    scm:
+    - git:
+        basedir: ice-setup
+        branches: $BRANCH
+        url: https://github.com/ceph/ice-setup
+    wrappers:
+    - inject:
+        global: false
+        mask-password-params: true