From 6f6602042ec8d005f6f758efb3099403e4b9d6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Sk=C3=B3rzewski?= Date: Wed, 20 Mar 2024 14:58:27 +0100 Subject: [PATCH] Dataset stats --- .gitignore | 1 + Jenkinsfile => create-datasets.Jenkinsfile | 0 dataset-stats.Jenkinsfile | 18 ++++++++++++++++++ dataset-stats.sh | 3 +++ 4 files changed, 22 insertions(+) rename Jenkinsfile => create-datasets.Jenkinsfile (100%) create mode 100644 dataset-stats.Jenkinsfile create mode 100755 dataset-stats.sh diff --git a/.gitignore b/.gitignore index 5d381cc..7aea567 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,4 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +*.csv \ No newline at end of file diff --git a/Jenkinsfile b/create-datasets.Jenkinsfile similarity index 100% rename from Jenkinsfile rename to create-datasets.Jenkinsfile diff --git a/dataset-stats.Jenkinsfile b/dataset-stats.Jenkinsfile new file mode 100644 index 0000000..c87432c --- /dev/null +++ b/dataset-stats.Jenkinsfile @@ -0,0 +1,18 @@ +pipeline { + agent any + + stages { + stage('Copy artifacts') { + steps { + copyArtifacts filter: 'data.csv', + fingerprintArtifacts: true, projectName: 'z-s301654-create-dataset', + selector: lastSuccessful() + } + } + stage('Calculate stats') { + steps { + sh "dataset-stats.sh" + } + } + } +} \ No newline at end of file diff --git a/dataset-stats.sh b/dataset-stats.sh new file mode 100755 index 0000000..96bfea1 --- /dev/null +++ b/dataset-stats.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +wc -l data.csv \ No newline at end of file