jenkins test
This commit is contained in:
parent
eae611d235
commit
d13c7f3b6b
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -1,21 +1,7 @@
|
||||
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"
|
||||
echo "Hello"
|
||||
}
|
||||
stage('Goodbye') {
|
||||
echo 'Goodbye!'
|
||||
|
Loading…
Reference in New Issue
Block a user