This commit is contained in:
Alicja Szulecka 2024-03-26 20:09:49 +01:00
parent fba097b316
commit 9edd5394da
2 changed files with 30 additions and 0 deletions

23
stats/Jenkinsfile vendored Normal file
View File

@ -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
}
}
}
}

7
stats/stats_dataset.sh Normal file
View File

@ -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