Fix Install Jenkins #4
All checks were successful
Neutral/pipeline/head This commit looks good

This commit is contained in:
CICD - Pipeline 2023-03-19 14:41:16 +01:00
parent 79257f42d1
commit 7d2eed0e4b
2 changed files with 1 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -15,7 +15,7 @@ pipeline {
echo "[Neutral-Deploy] - Deploy Stage"
sh "ssh raphix@raphix.fr sudo apt update -y"
sh "ssh raphix@raphix.fr sudo apt upgrade -y"
sh "ssh raphix@raphix.fr /home/gitlab-ci/neutral_deploy.sh"
sh "ssh raphix@raphix.fr sudo -u 'gitlab-ci' /home/gitlab-ci/neutral_deploy.sh"
}
}
}

View File

@ -1,6 +1,5 @@
echo "[Neutral-Deploy] - Stage - Déploiement - START "
echo "[Neutral-Deploy] - Arrêt de Neutral : Processing"
sudo su gitlab-ci
cd /home/gitlab-ci
pm2 stop Neutral
pm2 delete Neutral