ium_470607/lab2/Jenkinsfile_create_dataset

30 lines
934 B
Plaintext
Raw Normal View History

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-04-02 22:14:19 +02:00
sh 'chmod +x ./lab2/script-zadanie-2-4.sh'
sh './lab2/script-zadanie-2-4.sh'
sh 'chmod +x ./lab2/script-zadanie-2-4-cutoff.sh'
sh "./lab2/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
}
}
}
}