diff --git a/Jenkinsfile b/Jenkinsfile index d047b62..0f0a662 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,9 @@ pipeline { //Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania parameters { string ( - defaultValue: 'Hello World!', - description: 'Tekst, ktorym chcesz przywitac swiat', name: 'INPUT_TEXT', + defaultValue: 'Hello World!', + description: 'Tekst, ktorym chcesz przywitac swiat', trim: false ) } @@ -13,9 +13,9 @@ pipeline { stage('Hello') { steps { //Wypisz wartosc parametru w konsoli (To nie jest polecenie bash, tylko groovy!) - echo "INPUT_TEXT: ${name}" + echo "INPUT_TEXT: ${INPUT_TEXT}" //Wywolaj w konsoli komende "figlet", ktora generuje ASCI-art - sh "figlet \"${name}\" | tee output.txt" + sh "figlet \"${INPUT_TEXT}\" | tee output.txt" } } stage('Goodbye!') {