+++ /dev/null
-#!/bin/bash -ex
-
-# Rename a debian package from "mariner-installer" to "rhcs-installer".
-
-oldname='mariner-installer'
-newname='rhcs-installer'
-
-cd $WORKSPACE/$oldname
-
-# Replace content in files
-for file in $(find config debian -type f); do
- if [ $file == 'debian/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
-
-# Change takora dependency to ceph-puppet-modules
-sed -i -e "s/takora/ceph-puppet-modules/g" debian/control
-
-# Rename files
-for file in $(find bin config debian -type f -name "*$oldname*"); do
- newfile=$(echo $file | sed -e "s/$oldname/$newname/")
- mv $file $newfile
-done
+++ /dev/null
-- 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
- 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