25 lines
539 B
Groovy
25 lines
539 B
Groovy
pipeline {
|
|
agent any
|
|
parameters {
|
|
string (
|
|
defaultValue: 'Witaj świecie!',
|
|
description: 'Tekst, którym chcesz przywitać świat',
|
|
name: 'INPUT_TEXT',
|
|
trim: false
|
|
)
|
|
}
|
|
stages {
|
|
stage('Hello') {
|
|
steps {
|
|
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
|
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
|
}
|
|
}
|
|
stage('Goodbye!') {
|
|
steps {
|
|
echo 'Goodbye!'
|
|
archiveArtifacts 'output.txt'
|
|
}
|
|
}
|
|
}
|
|
} |