Upload Jenkinsfile and fix inspecting data

This commit is contained in:
Jan Świątek 2023-04-08 15:23:34 +02:00
parent 0b6375cd5d
commit 3a51fca450
2 changed files with 171 additions and 628 deletions

774
02.ipynb

File diff suppressed because one or more lines are too long

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'Hello World!',
description: 'Tekst do wyświetlenia',
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'
}
}