Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
making sure sat_tools_repos to evaluate correct repos
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Jun 3, 2019
1 parent 3c542be commit 5cbfee2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jobs/satellite6-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@
default: true
description: |
This option allows to use foreman-maintain for satellite-upgrade.
- satellite6-automation-parameters
scm:
- git:
url: https://github.com/SatelliteQE/satellite6-upgrade.git
Expand Down Expand Up @@ -1478,6 +1479,7 @@
- '6.6'
os:
- 'rhel7'
-
jobs:
- 'upgrade-to-{satellite_version}-{os}'
- 'automation-preupgrade-{satellite_version}-scenario-tests-{os}'
Expand Down
11 changes: 11 additions & 0 deletions scripts/satellite6-upgrade-run-scenarios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ function setupPrerequisites () {
sed -i "s/# gateway=.*/gateway=${GATEWAY}/" robottelo.properties
sed -i "s/# netmask=.*/netmask=${NETMASK}/" robottelo.properties

# cdn = 1 for Distributions: GA (default in robottelo.properties)
# cdn = 0 for Distributions: INTERNAL, BETA, ISO
# Sync content and use the below repos only when DISTRIBUTION is not GA
if [[ "${SATELLITE_DISTRIBUTION}" != *"GA"* ]]; then
# The below cdn flag is required by automation to flip between RH & custom syncs.
sed -i "s/^cdn=.*/cdn=false/" robottelo.properties
# Usage of '|' is intentional as TOOLS_REPO can bring in http url which has '/'
sed -i "s|sattools_repo=.*|sattools_repo=rhel8=${RHEL8_TOOLS_REPO},rhel7=${RHEL7_TOOLS_REPO},rhel6=${RHEL6_TOOLS_REPO}|" robottelo.properties
sed -i "s|capsule_repo=.*|capsule_repo=${CAPSULE_REPO}|" robottelo.properties
fi

# Robottelo logging configuration
sed -i "s/'\(robottelo\).log'/'\1-${ENDPOINT}.log'/" logging.conf
# Bugzilla Login Details
Expand Down

0 comments on commit 5cbfee2

Please sign in to comment.