neutral-old/Jenkinsfile
Raphix 41fa6b0f2d
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit
Test Neutral Pipeline #2
2023-03-19 17:41:49 +01:00

25 lines
756 B
Groovy

pipeline {
agent any
stages {
stage('[Neutral] - Test') {
steps {
echo "[Neutral-Deploy] - Test Stage"
sh "rm -rf neutral"
sh "git clone https://git.raphix.fr/infrastructure/neutral.git"
sh "cd neutral"
sh "npm i"
sh "PORT=3100 node bin/www"
}
}
stage('[Neutral] - Deploy') {
steps {
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 sudo -S -u gitlab-ci /home/gitlab-ci/neutral_deploy.sh"
}
}
}
}