From 9edd5394dab1bad730b0f96567a363c3a594546a Mon Sep 17 00:00:00 2001 From: Alicja Szulecka Date: Tue, 26 Mar 2024 20:09:49 +0100 Subject: [PATCH] stats --- stats/Jenkinsfile | 23 +++++++++++++++++++++++ stats/stats_dataset.sh | 7 +++++++ 2 files changed, 30 insertions(+) create mode 100644 stats/Jenkinsfile create mode 100644 stats/stats_dataset.sh diff --git a/stats/Jenkinsfile b/stats/Jenkinsfile new file mode 100644 index 0000000..c94812d --- /dev/null +++ b/stats/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent any + parameters { + buildSelector { + defaultSelector: lastSuccessful(), + description: 'Build for copying artifacts', + name: 'BUILD_SELECTOR' + } + } + stages { + stage('Copy Artifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's464914-create-dataset', selector: buildParameter('BUILD_SELECTOR') + } + } + stage('Build') { + steps { + sh "bash ./stats_dataset.sh" + archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true + } + } + } +} \ No newline at end of file diff --git a/stats/stats_dataset.sh b/stats/stats_dataset.sh new file mode 100644 index 0000000..567da06 --- /dev/null +++ b/stats/stats_dataset.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +wc -l artifacts/meteorite_train.csv > stats_train.txt + +wc -l artifacts/meteorite_test.csv > stats_test.txt + +wc -l artifacts/meteorite_validation.csv > stats_validation.txt \ No newline at end of file