2024-03-26 10:43:23 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'Hello World!',
|
2024-03-26 10:47:35 +01:00
|
|
|
description: 'Tekst, którym chcesz przywitać świat'
|
2024-03-26 10:43:23 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Hello') {
|
|
|
|
steps {
|
2024-03-26 10:47:35 +01:00
|
|
|
echo "Hello World"
|
2024-03-26 10:43:23 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Goodbye!') {
|
|
|
|
steps {
|
|
|
|
echo 'Goodbye!'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|