This commit is contained in:
Maciej 2021-03-29 00:11:59 +02:00
parent b302f94d53
commit abb094b4aa

6
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ pipeline {
string( string(
defaultValue: 'maciejsobkowiak', defaultValue: 'maciejsobkowiak',
description: 'Kaggle username', description: 'Kaggle username',
name: 'KAGGLE_USERNAME', name: 'username',
trim: false trim: false
) )
} }
@ -19,8 +19,8 @@ pipeline {
} }
stage('sh: Shell Script') { stage('sh: Shell Script') {
steps { steps {
withEnv(['KAGGLE_USERNAME=${params.KAGGLE_USERNAME}', withEnv(['KAGGLE_USERNAME=${params.username}',
'KAGGLE_KEY=${params.KAGGLE_KEY}' ]) { 'KAGGLE_KEY=${params.key}' ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets download -d szamil/who-suicide-statistics' sh 'kaggle datasets download -d szamil/who-suicide-statistics'