added script for copying backendfolder to olberry
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
|
||||
if test "$1" = "edit-jenkinsfile"
|
||||
then
|
||||
echo 'Stop node process'
|
||||
ssh -i /etc/ssh/simco_key simco-jenkins@gitea.oliver.boehlk.io "killall node"
|
||||
echo 'Remove old backend folder'
|
||||
ssh -i /etc/ssh/simco_key simco-jenkins@gitea.oliver.boehlk.io "rm -r ~/simco-dashboard/backend"
|
||||
echo 'Copy backend to OlberryPi'
|
||||
scp -r /backend/. simco-jenkins@gitea.oliver.boehlk.io:~/simco-dashboard/backend
|
||||
scp -i /etc/ssh/simco_key -r backend simco-jenkins@gitea.oliver.boehlk.io:~/simco-dashboard
|
||||
else
|
||||
echo "Skipping for non-master branch"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user