From 80a7ce8f196e017cd8f2e1c43e8c43176d615f12 Mon Sep 17 00:00:00 2001 From: Raphix Date: Sun, 19 Mar 2023 18:42:46 +0100 Subject: [PATCH] Final Jenkins Build --- Jenkinsfile | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa81d0c..1d753ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,37 +2,9 @@ pipeline { agent any stages { - stage('[Neutral] - Check Version') { - steps { - script { - def commit_name = env.TAG_NAME - if(commit_name) { - echo "[Neutral] - Deployement version reconnu" - - } else { - currentBuild.result = 'ABORTED' - echo "[Neutral] - Deployement version non reconnu" - return - - } - } - } - } stage('[Neutral] - Test') { steps { script { - def commit_name = env.TAG_NAME - echo env.TAG_NAME - if(commit_name) { - echo "[Neutral] - Deployement version reconnu" - - } else { - currentBuild.result = 'ABORTED' - echo "[Neutral] - Deployement version non reconnu" - return - - } - echo "[Neutral-Deploy] - Test Stage" sh "rm -rf neutral" sh "git clone https://git.raphix.fr/infrastructure/neutral.git" @@ -41,25 +13,12 @@ pipeline { sh "ENV='TEST' node bin/www" } - } } stage('[Neutral] - Déploiement') { steps { script { - - - def commit_name = env.TAG_NAME - if(commit_name) { - echo "[Neutral] - Deployement version reconnu" - - } else { - currentBuild.result = 'ABORTED' - echo "[Neutral] - Deployement version non reconnu" - return - - } - + def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Déployer') echo "[Neutral-Deploy] - Deploy Stage" sh "ssh raphix@raphix.fr sudo apt update -y"