diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 48ee694..4fdb0ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,6 @@ stages: # List of stages for jobs, and their order of execution - notify variables: GIT_SSH_COMMAND: "ssh -i /home/gitlab-runner/.ssh/id_rsa -o IdentitiesOnly=yes" - SSH_CONNECTION_TIMEOUT: 2 # notify_start: # stage: notify_start # Should be in a later stage than the job that might fail # script: @@ -39,9 +38,9 @@ build-job: # This job runs in the build stage, which runs first. - chmod 600 ~/.ssh/id_rsa - ls -la - pyinstaller --onefile portainer.py - - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true - - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.12:/myapps/bin/ || true - - scp -o ConnectTimeout=$SSH_CONNECTION_TIMEOUT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true + - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true + - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.12:/myapps/bin/ || true + - scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp artifacts: paths: