test
This commit is contained in:
parent
d80a13ca2b
commit
d87837d0c0
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -13,7 +13,11 @@ pipeline {
|
||||
description: 'Kaggle token',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
|
||||
string(
|
||||
defaultValue: '2',
|
||||
description: 'Cutoff lines',
|
||||
name: 'CUTOFF'
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -29,7 +33,7 @@ pipeline {
|
||||
stage('Shell Script') {
|
||||
steps {
|
||||
sh 'chmod u+x download.sh'
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh './download.sh'
|
||||
}
|
||||
|
@ -2,4 +2,4 @@ kaggle datasets download -d arushchillar/disneyland-reviews
|
||||
unzip disneyland-reviews.zip
|
||||
head DisneylandReviews.csv > d_test.csv
|
||||
tail DisneylandReviews.csv > d_dev.csv
|
||||
tail -n 20 DisneylandReviews.csv > d_train.csv
|
||||
tail -n $CUTOFF DisneylandReviews.csv > d_train.csv
|
||||
|
Loading…
Reference in New Issue
Block a user