add Jenkinsfile for dataset-stats

This commit is contained in:
jakubknczny 2021-03-28 17:41:49 +02:00
parent 1d12550fea
commit 46b56b023f

23
Jenkinsfile_dataset_stats Normal file
View File

@ -0,0 +1,23 @@
pipeline {
agent any
stages {
stage('copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: lastSuccessful()
}
}
stage('stats') {
steps {
sh 'wc -l train.csv > stats.txt'
sh 'wc -l test.csv >> stats.txt'
sh 'wc -l valid.csv >> stats.txt'
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}