From 0665130c3ceab54301309db3aaabd8299f95ba98 Mon Sep 17 00:00:00 2001 From: Raphix Date: Sun, 19 Mar 2023 17:56:35 +0100 Subject: [PATCH] Test Neutral Pipeline #5 --- Jenkinsfile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index efb7012..ec38c05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,12 +15,17 @@ pipeline { } stage('[Neutral] - Deploy') { steps { - userInput = input( - id: 'userInput', message: 'Enter path of test reports:?', - parameters: [ - [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Path of config file', name: 'Config'], - [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Test Info file', name: 'Test'] - ]) + script { + def userInput = input( + id: 'userInput', message: 'Enter path of test reports:?', + parameters: [ + [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Path of config file', name: 'Config'], + [$class: 'TextParameterDefinition', defaultValue: 'None', description: 'Test Info file', name: 'Test'] + ]) + echo ("IQA Sheet Path: "+userInput['Config']) + echo ("Test Info file path: "+userInput['Test']) + + } echo "[Neutral-Deploy] - Deploy Stage" sh "ssh raphix@raphix.fr sudo apt update -y" sh "ssh raphix@raphix.fr sudo apt upgrade -y"