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