add kaggle

This commit is contained in:
PawelDopierala 2024-03-27 01:55:00 +01:00
parent 392ef5c6c3
commit f89ebb7575

21
Jenkinsfile vendored
View File

@ -1,6 +1,20 @@
pipeline {
agent any
parameters {
string(
defaultValue: '',
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 {
stage('Git') {
steps {
@ -21,5 +35,12 @@ pipeline {
archiveArtifacts artifacts: 'processed_data.txt'
}
}
stage('Kaggle') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}
}