Sha256: d41e798142590ed6d9fc1433feb3fda4c12ff4811fcbf0ba17d9f38d7bacdf9e

Contents?: true

Size: 1.43 KB

Versions: 18

Compression:

Stored size: 1.43 KB

Contents

#! /usr/bin/env bash

###############################################################################
# Initial preparation for a ci acceptance job in Jenkins.  Crucially, it
# handles the untarring of the build artifact and bundle install, getting us to
# a state where we can then bundle exec rake the particular ci:test we want to
# run.
#
# Having this checked in in a script makes it much easier to have multiple
# acceptance jobs.  It must be kept agnostic between Linux/Solaris/Windows
# builds, however.

set -x

# If $GEM_SOURCE is not set, fall back to rubygems.org
if [ -z $GEM_SOURCE ]; then
  export GEM_SOURCE='https://rubygems.org'
fi

echo "SHA: ${SHA}"
echo "FORK: ${FORK}"
echo "BUILD_SELECTOR: ${BUILD_SELECTOR}"
echo "PACKAGE_BUILD_STATUS: ${PACKAGE_BUILD_STATUS}"

rm -rf acceptance
tar -xzf acceptance-artifacts.tar.gz
cd acceptance

mkdir -p log/latest

echo "===== This artifact is from ====="
cat creator.txt

bundle install --without=development --path=.bundle/gems

if [[ "${platform}" =~ 'solaris' ]]; then
  repo_proxy="  :repo_proxy => false,"
fi

# If the platform is Windows, append $ruby_arch
if [[ "${platform}" =~ 'win' ]]; then
    platform="${platform}-${ruby_arch}"
fi

cat > local_options.rb <<-EOF
{
  :hosts_file => 'config/nodes/${platform}.yaml',
  :ssh => {
    :keys => ["${HOME}/.ssh/id_rsa-acceptance"],
  },
${repo_proxy}
}
EOF

[[ (-z "${PACKAGE_BUILD_STATUS}") || ("${PACKAGE_BUILD_STATUS}" = "success") ]] || exit 1

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
facter-4.0.29 acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-4.0.28 acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.2.cfacter.20181217 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.1.cfacter.20181031 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.6.cfacter.20181031 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.1.cfacter.20181023 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.5.cfacter.20181022 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.0.cfacter.20181004 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.0.cfacter.20181001 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.12.0.cfacter.20180918 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.4.cfacter.20180821 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.3.cfacter.20180716 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.2.cfacter.20180612 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.9.6.cfacter.20180612 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.2.cfacter.20180606 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.9.6.cfacter.20180606 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
facter-3.11.0.cfacter.20180319 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh
cfacter-3.11.0.rc.20180314 ext/facter/facter/acceptance/bin/ci-bootstrap-from-artifacts.sh