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