]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Add rhcs-installer job 122/head
authorTravis Rhoden <trhoden@redhat.com>
Tue, 1 Sep 2015 23:29:20 +0000 (16:29 -0700)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 1 Sep 2015 23:29:20 +0000 (16:29 -0700)
Job to build rhcs-installer package from upstream mariner-installer
source/job.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
rhcs-installer/build/rename-rhcs-installer [new file with mode: 0755]
rhcs-installer/config/definitions/rhcs-installer.yml [new file with mode: 0644]

diff --git a/rhcs-installer/build/rename-rhcs-installer b/rhcs-installer/build/rename-rhcs-installer
new file mode 100755 (executable)
index 0000000..186999e
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash -ex
+
+# Rename a debian package from "mariner-installer" to "rhcs-installer".
+
+oldname='mariner-installer'
+newname='rhcs-installer'
+
+cd $WORKSPACE/$oldname/debian
+
+for file in $(find . -type f); do
+    if [ $file == './copyright' ]; then
+        # The uses of "$oldname" in the copyright file are ok to leave alone.
+        continue
+    fi
+    sed -i -e "s/$oldname/$newname/g" $file
+done
+
+for file in $(find . -type f -name "*$oldname*"); do
+    newfile=$(echo $file | sed -e "s/$oldname/$newname/")
+    mv $file $newfile
+done
diff --git a/rhcs-installer/config/definitions/rhcs-installer.yml b/rhcs-installer/config/definitions/rhcs-installer.yml
new file mode 100644 (file)
index 0000000..2495ee1
--- /dev/null
@@ -0,0 +1,55 @@
+- job:
+    name: rhcs-installer
+    description: Build and package mariner-installer as rhcs-installer
+    project-type: matrix
+    axes:
+    - axis:
+        name: Arch
+        type: label-expression
+        values:
+        - x86_64
+    - axis:
+        name: Dist
+        type: label-expression
+        values:
+        - trusty
+    block-downstream: false
+    block-upstream: false
+
+    properties:
+    - github:
+        url: https://github.com/ceph/mariner-installer/
+
+    scm:
+    - git:
+        skip-tag: true
+        basedir: mariner-installer
+        url: https://github.com/ceph/mariner-installer
+        branches:
+         - $BRANCH
+
+    execution-strategy:
+      run-sequentially: false
+
+    builders:
+    - shell:
+        !include-raw ../../build/rename-rhcs-installer
+    - shell:
+        !include-raw ../../../mariner-installer/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