From c6fddb659e7ee98a89f83f00354eb7d53b34242a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudziak?= Date: Thu, 23 Mar 2023 11:13:21 +0100 Subject: [PATCH] add Jenkinsfile --- 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