From f51d93b313b49f45d3d56c0810ece0f89827e4b8 Mon Sep 17 00:00:00 2001 From: szymonj98 Date: Sun, 27 Mar 2022 12:33:32 +0200 Subject: [PATCH] zad 6 --- Jenkinsfile2 | 3 +++ dataset_stats.sh | 1 + 2 files changed, 4 insertions(+) create mode 100644 dataset_stats.sh 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