From 31388d1e4bfb894d029938e3f3f17216aba1ef72 Mon Sep 17 00:00:00 2001 From: s464962 Date: Tue, 26 Mar 2024 10:48:36 +0100 Subject: [PATCH] revert 51876ea181f7390a10784ca350000aa01f20cf0f revert Update Jenkinsfile --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 11c246c..0352999 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,18 +4,25 @@ pipeline { parameters { string ( defaultValue: 'Hello World!', - description: 'Tekst, którym chcesz przywitać świat' + description: 'Tekst, którym chcesz przywitać świat', + name: 'INPUT_TEXT', + trim: false ) } stages { stage('Hello') { steps { - echo "Hello World" + //Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!) + echo "INPUT_TEXT: ${INPUT_TEXT}" + //Wywołaj w konsoli komendę "figlet", która generuje ASCI-art + sh "figlet \"${INPUT_TEXT}\" | tee output.txt" } } stage('Goodbye!') { steps { echo 'Goodbye!' + //Zarchiwizuj wynik + archiveArtifacts 'output.txt' } } }