ci tidyup
This commit is contained in:
parent
b205bd7555
commit
09ca6bddf6
1 changed files with 1 additions and 4 deletions
|
@ -11,15 +11,12 @@ SSH_OPTIONS='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
|
|||
|
||||
for INTEGRATION in "$(cat $CONFIG_PATH | jq -r '.ci | values[]')"
|
||||
do
|
||||
|
||||
echo '-----------------------'
|
||||
echo $INTEGRATION
|
||||
|
||||
[[ $(jq -r '.repo' <<< $INTEGRATION) = $REPO_NAME ]] || continue
|
||||
|
||||
HOSTNAME=$(jq -r '.hostname' <<< $INTEGRATION)
|
||||
DESTINATION_PATH=$(jq -r '.path' <<< $INTEGRATION)
|
||||
DESTINATION_GROUP=$(jq -r '.group' <<< $INTEGRATION)
|
||||
|
||||
[[ -z "$HOSTNAME" ]] || [[ -z "$DESTINATION_PATH" ]] || [[ -z "$DESTINATION_GROUP" ]] && exit 5
|
||||
|
||||
cd ~
|
||||
|
|
Loading…
Reference in a new issue