diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 16c47fe..4c0bddb 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -10,6 +10,9 @@ pipeline{ stage('copy artefacts') { steps { copyArtifacts filter: 'data.csv', fingerprintArtifacts: true, projectName: 's444386-create-dataset', selector: lastSuccessful() + sh "chmod u+x ./dataset_stats.sh" + sh "./dataset_stats.sh" + archiveArtifacts 'number_of_lines.txt' } } } diff --git a/dataset_stats.sh b/dataset_stats.sh new file mode 100644 index 0000000..9a1bbf3 --- /dev/null +++ b/dataset_stats.sh @@ -0,0 +1 @@ +wc -l data.csv >> number_of_lines.txt \ No newline at end of file