Browse Source

Added debugging

expose_links
Drew Short 5 years ago
parent
commit
5dec9d59b8
  1. 11
      assets/common.sh
  2. 8
      assets/out

11
assets/common.sh

@ -2,13 +2,18 @@ export TMPDIR=${TMPDIR:-/tmp}
load_config() { load_config() {
local config_path=$TMPDIR/rclone_config local config_path=$TMPDIR/rclone_config
local rclone_config_path=/opt/rclone/config
local rclone_config_file=$rclone_config_path/.rclone.conf
(jq -r '.source.config // empty' < $1) > $config_path (jq -r '.source.config // empty' < $1) > $config_path
if [ -s $config_path ]; then if [ -s $config_path ]; then
mkdir -p /opt/rclone/config
mv $config_path > /opt/rclone/config/.rclone.conf
chmod 500 /opt/rclone/config/.rclone.conf
mkdir -p $rclone_config_path
mv $config_path $rclone_config_file
# TODO: Remove Me - DEBUGGING
echo "Config file:"
cat $rclone_config_file
chmod 500 $rclone_config_file
else else
echo "No config provided" echo "No config provided"
exit 1 exit 1

8
assets/out

@ -5,10 +5,10 @@ set -e
exec 3>&1 # make stdout available as fd 3 for the result exec 3>&1 # make stdout available as fd 3 for the result
exec 1>&2 # redirect all output to stderr for logging exec 1>&2 # redirect all output to stderr for logging
echo $BUILD_ID
echo $BUILD_NAME
echo $BUILD_JOB_NAME
echo $BUILD_PIPELINE_NAME
echo "BUILD_ID: $BUILD_ID"
echo "BUILD_NAME: $BUILD_NAME"
echo "BUILD_JOB_NAME: $BUILD_JOB_NAME"
echo "BUILD_PIPELINE_NAME: $BUILD_PIPELINE_NAME"
source $(dirname $0)/common.sh source $(dirname $0)/common.sh

Loading…
Cancel
Save