From 46b56b023f32fa63a72011f8b15b824366b8236b Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 28 Mar 2021 17:41:49 +0200 Subject: [PATCH] add Jenkinsfile for dataset-stats --- Jenkinsfile_dataset_stats | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile_dataset_stats diff --git a/Jenkinsfile_dataset_stats b/Jenkinsfile_dataset_stats new file mode 100644 index 0000000..9ebc346 --- /dev/null +++ b/Jenkinsfile_dataset_stats @@ -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' + } + } + } +}