neutral-old/Jenkinsfile
Raphix e3a1db5200
All checks were successful
Neutral/pipeline/head This commit looks good
Restore Neutral
2023-04-28 22:36:23 +02:00

33 lines
982 B
Groovy

pipeline {
agent any
stages {
stage('[Neutral] - Test') {
steps {
script {
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 "ENV='TEST' node bin/www"
}
}
}
stage('[Neutral] - Déploiement') {
steps {
script {
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"
}
}
}
}
}