bot/Jenkinsfile

34 lines
976 B
Plaintext
Raw Normal View History

2023-04-22 14:29:35 +00:00
pipeline {
agent any
stages {
stage('[Subsonics] - Test') {
steps {
script {
echo "[Subsonics-Deploy] - Test Stage"
2023-04-27 21:45:36 +00:00
sh "rm -rf bot"
sh "git clone https://git.raphix.fr/subsonics/bot.git"
sh "cd bot"
2023-04-22 14:29:35 +00:00
sh "npm i"
2023-04-22 14:35:56 +00:00
sh "ENV='TEST' node src/main.js"
2023-04-22 14:29:35 +00:00
}
}
}
stage('[Subsonics] - Déploiement') {
steps {
script {
2023-04-27 09:22:02 +00:00
2023-04-22 14:29:35 +00:00
echo "[Subsonics-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/subsonics_deploy.sh"
}
}
}
}
2023-06-19 20:53:12 +00:00
}