Update Jenkinsfile

This commit is contained in:
s452487 2024-03-24 17:02:18 +01:00
parent 60890a34b4
commit d35124f7d0

42
Jenkinsfile vendored
View File

@ -1,29 +1,15 @@
pipeline { pipeline {
agent any agent any
//Definijuemy parametry, które bêdzie mo¿na podaæ podczas wywo³ywania zadania stages {
parameters { stage('Dataset_download') {
string ( steps {
defaultValue: 'Hello World!',
description: 'Tekst, którym chcesz przywitaæ œwiat', echo "username_visibility_test: ${kaggle_username}"
name: 'INPUT_TEXT', echo "password_visibility_test: ${kaggle_password}"
trim: false
) echo 'password_visibility_test2: ${kaggle_password}'
} echo 'password_visibility_test2: ${kaggle_password}'
stages { }
stage('Hello') { }
steps { }
//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!') {
steps {
echo 'Goodbye!'
//Zarchiwizuj wynik
archiveArtifacts 'output.txt'
}
}
}
} }