Added dataset-stats

This commit is contained in:
Andrzej Preibisz 2022-03-27 14:07:32 +02:00
parent 76e3ced286
commit 58c31c3a9f
2 changed files with 34 additions and 0 deletions

28
Jenkinsfile.stats Normal file
View File

@ -0,0 +1,28 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts filter: 'heart_2020_test.csv, heart_2020_train.csv, heart_2020_sorted.csv', fingerprintArtifacts: true, projectName: 's444465-create-dataset', selector: BUILD_SELECTOR
}
}
stage("Git clone"){
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
}
stage("sh: Shell Script") {
steps {
sh "./dataset_stats.sh | tee stats.txt"
archiveArtifacts artifacts: "stats.txt", onlyIfSuccessful: true
}
}
}
}

6
dataset_stats.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo "test dataset: "
wc -l heart_2020_test.csv
echo "train dataset: "
wc -l heart_2020_train.csv