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' + } + } + } +}