added Jenkinsfile for Lab3

This commit is contained in:
GrzegorzGapinski 2023-03-22 14:56:34 +01:00
parent 6a65334cb4
commit 8e3df4fef8

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
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"
}
stage('Goodbye') {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'output.txt'
}
}