This commit is contained in:
Jakub Zaręba 2023-03-27 21:54:06 +02:00
parent 2548b93211
commit 89cdb1365c

14
Jenkinsfile vendored
View File

@ -1,14 +1,6 @@
pipeline { pipeline {
agent any agent any
parameters {
string(
defaultValue: '10',
description: 'number of examples in dataset',
name: 'CUTOFF'
)
}
stages { stages {
stage('Preparation') { stage('Preparation') {
when { expression { true } } when { expression { true } }
@ -28,6 +20,11 @@ pipeline {
description: 'Kaggle token taken from kaggle.json file', description: 'Kaggle token taken from kaggle.json file',
name: 'KAGGLE_KEY' name: 'KAGGLE_KEY'
) )
string(
defaultValue: '10',
description: 'number of examples in dataset',
name: 'CUTOFF'
)
]) ])
]) ])
} catch (err) { } catch (err) {
@ -56,7 +53,6 @@ pipeline {
head -n ${params.CUTOFF} Athletes_summer_games.csv > Athletes_summer_games_cutoff.csv head -n ${params.CUTOFF} Athletes_summer_games.csv > Athletes_summer_games_cutoff.csv
mv Athletes_summer_games_cutoff.csv Athletes_summer_games.csv
''' '''
} }
} catch (err) { } catch (err) {