Skip to content

Commit 199fd7f

Browse files
committed
CCS-3957: Update deployment pipeline. Updating install script and adding error for unreachable host
1 parent 3d6caa3 commit 199fd7f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

install.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
# Variables
44
UPLOADER_HOME=~/.pantheon
55
PANTHEON_BIN=~/bin/pantheon
6+
PANTHEON_BIN_PATH_EXPORTED="export PATH=$PATH:$HOME/bin"
7+
8+
if ! grep -q "$PANTHEON_BIN_PATH_EXPORTED" "$HOME/.bashrc" ; then
9+
echo "in if"
10+
cp ~/.bashrc ~/.bashrc_bak
11+
echo "$PANTHEON_BIN_PATH_EXPORTED" >> ~/.bashrc
12+
source ~/.bashrc
13+
fi
614

715
# Create UPLOADER_HOME directory if not exists
816
if [ ! -d "$UPLOADER_HOME" ]; then
@@ -12,8 +20,8 @@ fi
1220

1321
# Download the pantheon-pantheon_uploader script to $UPLOADER_HOME
1422
echo "Downloading the uploader script to $UPLOADER_HOME"
15-
curl -o ${UPLOADER_HOME}/pantheon.py https://raw.githubusercontent.com/redhataccess/uploader/master/uploader/pantheon.py
16-
curl -o ${UPLOADER_HOME}/requirements.txt https://raw.githubusercontent.com/redhataccess/uploader/master/requirements.txt
23+
curl -o ${UPLOADER_HOME}/pantheon.py https://raw.githubusercontent.com/redhataccess/pantheon-uploader/master/pantheon_uploader/pantheon.py
24+
curl -o ${UPLOADER_HOME}/requirements.txt https://raw.githubusercontent.com/redhataccess/pantheon-uploader/master/requirements.txt
1725

1826
pip3 install --user -r ${UPLOADER_HOME}/requirements.txt
1927

pantheon_uploader/pantheon.py

+1
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ def start_process(numeric_level=30, pw=None, directory=None, server=DEFAULT_SERV
641641
status_data.uploaded_data['server'] = create_status_data(server, '503', 'server ' + server + ' is not reachable')
642642
status_data.uploaded_data['current_status'] = "server error"
643643
publish_status(use_broker, status_data.uploaded_data)
644+
logger.error('server: %s is unreachable', server)
644645
return False
645646
_info('Using server: ' + server)
646647

0 commit comments

Comments
 (0)