From eae611d235f3664bd0c1acd8f11a2edb546d9fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Krzymi=C5=84ski?= Date: Wed, 23 Mar 2022 11:11:31 +0100 Subject: [PATCH] Zaktualizuj 'Jenkinsfile' --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 867f3d5..acef5e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,4 +11,15 @@ node { ]) ]) } + stage('Hello') { + //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') { + echo 'Goodbye!' + //Zarchiwizuj wynik + archiveArtifacts 'output.txt' + } } \ No newline at end of file