Update 'Jenkinsfile'

This commit is contained in:
Wojciech Mikołajski 2023-04-14 03:22:58 +02:00
parent 24ff357672
commit 3b4e88f9ca

17
Jenkinsfile vendored
View File

@ -2,11 +2,16 @@ pipeline {
agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters {
string (
defaultValue: 'Hellllo World!',
description: 'Tekst, którym chcesz przywitać świat',
name: 'INPUT_TEXT',
string(
defaultValue: 'login',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
stages {
@ -18,7 +23,9 @@ pipeline {
}
stage('sh: Shell Script') {
steps {
sh 'python3 create_dataset.py'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
}
}
}