Test Neutral Pipeline #7
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Neutral/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
4b200351e1
commit
45498540dd
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -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) {
|
||||
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"
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user