neutral-old/Jenkinsfile

33 lines
982 B
Plaintext
Raw Normal View History

2023-03-18 17:20:17 +00:00
pipeline {
agent any
stages {
stage('[Neutral] - Test') {
2023-03-18 21:47:09 +00:00
steps {
2023-03-19 17:28:30 +00:00
script {
2023-03-19 17:29:18 +00:00
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"
2023-03-19 17:28:30 +00:00
}
2023-03-19 17:29:18 +00:00
2023-03-18 17:20:17 +00:00
}
2023-03-18 21:57:04 +00:00
}
2023-03-19 17:18:36 +00:00
stage('[Neutral] - Déploiement') {
2023-03-18 17:20:17 +00:00
steps {
2023-03-19 16:56:35 +00:00
script {
2023-03-19 17:42:46 +00:00
2023-03-19 17:02:41 +00:00
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"
2023-03-19 16:56:35 +00:00
}
2023-03-19 17:00:57 +00:00
2023-03-18 17:20:17 +00:00
}
}
}
}