kaggle token added
This commit is contained in:
parent
47b5968f0c
commit
4c80cc0902
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -1,6 +1,26 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
parameters {[
|
||||
string (
|
||||
defaultValue: '500',
|
||||
description: 'Liczba wierszy do odcięcia od datasetu',
|
||||
name: 'CUTOFF',
|
||||
trim: false
|
||||
),
|
||||
string(
|
||||
defaultValue: 'yerbamate',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
),
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token',
|
||||
name: 'KAGGLE_KEY'
|
||||
)]
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('checkout: Check out from version control') {
|
||||
steps {
|
||||
@ -10,9 +30,13 @@ pipeline {
|
||||
}
|
||||
stage('sh: Shell Script') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh 'chmod +x avocado-preprocessing.sh'
|
||||
sh 'chmod +x ./avocado-preprocessing.sh'
|
||||
sh './avocado-preprocessing.sh ${CUTOFF}'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('archiveArtifacts') {
|
||||
|
Loading…
Reference in New Issue
Block a user