From 2b63534d4d17b68d5c1e68a0e6dc718bf125ecca Mon Sep 17 00:00:00 2001 From: Raphix Date: Sat, 18 Mar 2023 22:53:41 +0100 Subject: [PATCH] Jenkins Test Build #4 --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 11457ab..cd10ab2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,20 +4,23 @@ pipeline { stages { stage('Install Neutral') { steps { - echo "[Neutral-Deploy] - Installation Stage". - "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute() + String result = echo "[Neutral-Deploy] - Installation Stage". + "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute().text + println result.toUpperCase() } } stage('Test Neutral') { steps { - echo "[Neutral-Deploy] - Test Stage" - "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute() + String result = echo "[Neutral-Deploy] - Test Stage" + "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute().text + println result.toUpperCase() } } stage('Deploy Neutral') { steps { - echo "[Neutral-Deploy] - Deploy Stage" - "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute() + String result = echo "[Neutral-Deploy] - Deploy Stage" + "ssh -i /home/raphix/sshkey/alpha raphix@alpha.raphix.fr 'pwd'".execute().text + println result.toUpperCase() } } }