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
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -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"
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user