2021-03-27 16:54:42 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-03-28 18:40:49 +02:00
|
|
|
parameters {
|
2021-03-28 19:38:13 +02:00
|
|
|
string(defaultValue: '6000',
|
2021-03-28 18:40:49 +02:00
|
|
|
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 19:15:39 +02:00
|
|
|
sh 'chmod +x script-zadanie-2-4-cutoff.sh'
|
|
|
|
sh "./script-zadanie-2-4-cutoff.sh ${params.CUTOFF}"
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|