Test Neutral Pipeline #7
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
CICD - Pipeline 2023-03-19 18:02:41 +01:00
parent 4b200351e1
commit 45498540dd

19
Jenkinsfile vendored
View File

@ -16,19 +16,12 @@ pipeline {
stage('[Neutral] - Deploy') { stage('[Neutral] - Deploy') {
steps { steps {
script { script {
def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Yes', def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Lancer le déploiement')
parameters: [booleanParam(defaultValue: true, echo "[Neutral-Deploy] - Deploy Stage"
description: 'Confirmation',name: 'Oui')]) sh "ssh raphix@raphix.fr sudo apt update -y"
if(doesJavaRock == true) { 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"
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"
} else {
echo "aborted"
}
} }