init
This commit is contained in:
parent
af386bc947
commit
ccf1ec20d4
@ -115,10 +115,6 @@ spec:
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
ls -al $HOME
|
|
||||||
cat $HOME/.gitconfig
|
|
||||||
cat $HOME/.git-credentials
|
|
||||||
|
|
||||||
if [ "$(params.sslVerify)" = "false" ]; then
|
if [ "$(params.sslVerify)" = "false" ]; then
|
||||||
echo "[INFO] Disabling SSL verification"
|
echo "[INFO] Disabling SSL verification"
|
||||||
git config --global http.sslVerify false
|
git config --global http.sslVerify false
|
||||||
@ -134,6 +130,8 @@ spec:
|
|||||||
if [ "$(params.deleteExisting)" = "true" ] && [ -d "$CLONE_DIR" ]; then
|
if [ "$(params.deleteExisting)" = "true" ] && [ -d "$CLONE_DIR" ]; then
|
||||||
echo "[INFO] Deleting existing directory $CLONE_DIR"
|
echo "[INFO] Deleting existing directory $CLONE_DIR"
|
||||||
rm -rf "$CLONE_DIR"
|
rm -rf "$CLONE_DIR"
|
||||||
|
mkdir -p "$CLONE_DIR"
|
||||||
|
chown -R $(id -u):$(id -g) "$CLONE_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[INFO] Cloning repository..."
|
echo "[INFO] Cloning repository..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user