22 lines
642 B
Groovy
22 lines
642 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Test Neutral') {
|
|
steps {
|
|
echo "[Neutral-Deploy] - Test Stage"
|
|
// sh "git clone git clone https://git.raphix.fr/infrastructure/neutral.git neutral"
|
|
|
|
|
|
}
|
|
}
|
|
stage('Deploy Neutral') {
|
|
steps {
|
|
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 /home/gitlab-ci/neutral_deploy.sh"
|
|
}
|
|
}
|
|
}
|
|
} |