From a25647e006babf580b48745c21f7d55d319bc8b5 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Tue, 1 Sep 2015 16:29:20 -0700 Subject: [PATCH] Add rhcs-installer job Job to build rhcs-installer package from upstream mariner-installer source/job. Signed-off-by: Travis Rhoden --- rhcs-installer/build/rename-rhcs-installer | 21 +++++++ .../config/definitions/rhcs-installer.yml | 55 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100755 rhcs-installer/build/rename-rhcs-installer create mode 100644 rhcs-installer/config/definitions/rhcs-installer.yml diff --git a/rhcs-installer/build/rename-rhcs-installer b/rhcs-installer/build/rename-rhcs-installer new file mode 100755 index 00000000..186999ee --- /dev/null +++ b/rhcs-installer/build/rename-rhcs-installer @@ -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 index 00000000..2495ee12 --- /dev/null +++ b/rhcs-installer/config/definitions/rhcs-installer.yml @@ -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 -- 2.39.5