add kaggle
This commit is contained in:
parent
392ef5c6c3
commit
f89ebb7575
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user