25 lines
760 B
Plaintext
25 lines
760 B
Plaintext
|
node {
|
|||
|
stage('Preparation') {
|
|||
|
properties([
|
|||
|
parameters([
|
|||
|
string(
|
|||
|
defaultValue: 'Hello World!',
|
|||
|
description: 'Tekst do wy<77>wietlenie',
|
|||
|
name: 'INPUT_TEXT',
|
|||
|
trim: false
|
|||
|
)
|
|||
|
])
|
|||
|
])
|
|||
|
}
|
|||
|
stage('Hello') {
|
|||
|
//Wypisz warto<74><6F> parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
|||
|
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
|||
|
//Wywo<77>aj w konsoli komend<6E> "figlet", kt<6B>ra generuje ASCI-art
|
|||
|
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
|||
|
}
|
|||
|
stage('Goodbye') {
|
|||
|
echo 'Goodbye!'
|
|||
|
//Zarchiwizuj wynik
|
|||
|
archiveArtifacts 'output.txt'
|
|||
|
}
|
|||
|
}
|