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 { pipeline {
agent any 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 { stages {
stage('Git') { stage('Git') {
steps { steps {
@ -21,5 +35,12 @@ pipeline {
archiveArtifacts artifacts: 'processed_data.txt' 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'
}
}
} }
} }