Skip to content

Commit

Permalink
Fixed cp command error
Browse files Browse the repository at this point in the history
Signed-off-by: CS Zhang <zhangcho@us.ibm.com>
  • Loading branch information
cs-zhang committed Feb 23, 2024
1 parent 023b20f commit 9d6cc40
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -638,13 +638,14 @@ cat > "/tmp/powervs-config.json" << EOF
{"id":"${POWERVS_USER_ID}","apikey":"${IBMCLOUD_API_KEY}","region":"${POWERVS_REGION}","zone":"${POWERVS_ZONE}","serviceinstance":"${POWERVS_SERVICE_INSTANCE_ID}","resourcegroup":"${POWERVS_RESOURCE_GROUP}"}
EOF
cp "/tmp/powervs-config.json" "${SHARED_DIR}/"
cp "/etc/sno-power-credentials/*" "${SHARED_DIR}/"
cp "/etc/sno-power-credentials/{ssh-publickey,ssh-publickey,pull-secret}" "${SHARED_DIR}/"
#Copy the auth artifacts to shared dir for the next steps
scp "${SSH_OPTIONS[@]}" root@${BASTION}:${BASTION_CI_SCRIPTS_DIR}/auth/* "${SHARED_DIR}/"
scp "${SSH_OPTIONS[@]}" "root@${BASTION}:${BASTION_CI_SCRIPTS_DIR}/auth/{kubeconfig,kubeadmin-password}" "${SHARED_DIR}/"
echo "Finished prepare_next_steps"

echo "Test cluster accessiblity"
CLUSTER_INFO="/tmp/cluster-${CLUSTER_TYPE}-${CLUSTER_NAME}.txt"
touch ${CLUSTER_INFO}
export KUBECONFIG="${SHARED_DIR}/kubeconfig"
oc get node -o wide >> ${CLUSTER_INFO}
oc get clusterversion >> ${CLUSTER_INFO}
Expand Down

0 comments on commit 9d6cc40

Please sign in to comment.