From f1a8c52796f1c71a08de13aeb0a7c00774d67929 Mon Sep 17 00:00:00 2001 From: s478841 Date: Mon, 21 Mar 2022 10:52:35 +0100 Subject: [PATCH] Jenkins init --- JenkinsFile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 JenkinsFile diff --git a/JenkinsFile b/JenkinsFile new file mode 100644 index 0000000..acef5e1 --- /dev/null +++ b/JenkinsFile @@ -0,0 +1,25 @@ +node { + stage('Preparation') { + properties([ + parameters([ + string( + defaultValue: 'Hello World!', + description: 'Tekst do wyświetlenie', + name: 'INPUT_TEXT', + trim: false + ) + ]) + ]) + } + 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