modify Jenkins ver 1.4
This commit is contained in:
parent
f7141d3978
commit
dc4385c93a
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -3,15 +3,21 @@ pipeline {
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: 'kamilab0bkowska',
|
||||
description: '',
|
||||
description: 'kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
)
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: '',
|
||||
description: 'kaggle passowrd',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
string(
|
||||
defaultValue: '10',
|
||||
description: 'cutoff parameter',
|
||||
name: 'CUTOFF'
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
stages {
|
||||
@ -25,9 +31,9 @@ pipeline {
|
||||
steps {
|
||||
sh 'chmod +x -R ./data_prep.sh'
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh './data_prep.sh'
|
||||
sh './data_prep.sh $CUTOFF'
|
||||
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user