diff --git a/Jenkinsfile b/Jenkinsfile index 3a3d0d2..6fd88b8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,19 +16,12 @@ pipeline { stage('[Neutral] - Deploy') { steps { script { - def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Yes', - parameters: [booleanParam(defaultValue: true, - description: 'Confirmation',name: 'Oui')]) - if(doesJavaRock == true) { - - 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" - } + def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Lancer le déploiement') + 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" + }