bot/Jenkinsfile
Raphix b755e989cd
All checks were successful
Subsonics - Pipeline/pipeline/head This commit looks good
Test Stable Version
2023-04-27 11:22:02 +02:00

33 lines
990 B
Groovy

pipeline {
agent any
stages {
stage('[Subsonics] - Test') {
steps {
script {
echo "[Subsonics-Deploy] - Test Stage"
sh "rm -rf subsonics"
sh "git clone https://git.raphix.fr/raphix/subsonics.git"
sh "cd subsonics"
sh "npm i"
sh "ENV='TEST' node src/main.js"
}
}
}
stage('[Subsonics] - Déploiement') {
steps {
script {
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"
}
}
}
}
}