Added Cutoff parameter

This commit is contained in:
Wojciech Lidwin 2023-03-26 19:05:59 +02:00
parent 916f29e0ad
commit c99d765378

8
Jenkinsfile vendored
View File

@ -12,6 +12,11 @@ node {
defaultValue: '', defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY' name: 'KAGGLE_KEY'
)
string(
defaultValue: '4',
description: '',
name: 'CUTOFF'
) )
]) ])
]) ])
@ -24,7 +29,8 @@ node {
stage('Shell Script') { stage('Shell Script') {
// Run the maven build // Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", 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 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod a+rx ./download_dataset.sh' sh 'chmod a+rx ./download_dataset.sh'
archiveArtifacts artifacts: 'baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv' archiveArtifacts artifacts: 'baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv'