2023-03-18 17:20:17 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
2023-03-18 21:47:09 +00:00
|
|
|
stage('Test Neutral') {
|
|
|
|
steps {
|
2023-03-19 11:05:56 +00:00
|
|
|
echo "[Neutral-Deploy] - Test Stage"
|
2023-03-19 13:23:55 +00:00
|
|
|
// sh "git clone git clone https://git.raphix.fr/infrastructure/neutral.git neutral"
|
|
|
|
|
2023-03-18 21:56:33 +00:00
|
|
|
|
2023-03-18 17:20:17 +00:00
|
|
|
}
|
2023-03-18 21:57:04 +00:00
|
|
|
}
|
2023-03-18 17:20:17 +00:00
|
|
|
stage('Deploy Neutral') {
|
|
|
|
steps {
|
2023-03-19 11:05:56 +00:00
|
|
|
echo "[Neutral-Deploy] - Deploy Stage"
|
2023-03-19 13:24:45 +00:00
|
|
|
sh "ssh raphix@raphix.fr sudo apt update -y"
|
|
|
|
sh "ssh raphix@raphix.fr sudo apt upgrade -y"
|
2023-03-19 13:23:55 +00:00
|
|
|
sh "ssh raphix@raphix.fr /home/gitlab-ci/neutral_deploy.sh"
|
2023-03-18 17:20:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|