2021-03-27 16:54:42 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-03-28 18:40:49 +02:00
|
|
|
parameters {
|
|
|
|
string(defaultValue: '20000',
|
|
|
|
description: 'numbers of data entries to keep in train.csv',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: true)
|
|
|
|
}
|
2021-03-27 16:54:42 +01:00
|
|
|
stages {
|
2021-03-28 13:29:04 +02:00
|
|
|
stage('sh: Shell Script') {
|
2021-03-27 16:54:42 +01:00
|
|
|
steps {
|
2021-03-28 13:29:04 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
2021-03-28 13:42:13 +02:00
|
|
|
sh 'chmod +x script-zadanie-2-4.sh'
|
|
|
|
sh './script-zadanie-2-4.sh'
|
2021-03-28 18:57:46 +02:00
|
|
|
sh 'head -n string('CUTOFF') train.csv > train.csv'
|
2021-03-28 13:29:04 +02:00
|
|
|
}
|
2021-03-28 17:29:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifacts') {
|
|
|
|
steps {
|
2021-03-28 13:29:04 +02:00
|
|
|
archiveArtifacts 'train.csv'
|
|
|
|
archiveArtifacts 'test.csv'
|
|
|
|
archiveArtifacts 'valid.csv'
|
2021-03-27 16:54:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|