Added dataset stats jenkinsfile and script

This commit is contained in:
Dawid 2021-03-28 21:38:23 +02:00
parent 82e0f4142c
commit f4bb29e2c6
2 changed files with 18 additions and 0 deletions

16
Jenkinsfile_stats Normal file
View File

@ -0,0 +1,16 @@
pipeline {
agent any
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage("Clone repo & print stats"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434804-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh "chmod 777 ./stats.sh"
sh "./stats.sh"
archiveArtifacts "stats.txt"
}
}
}
}

2
stats.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
wc -l ./*.csv > ./stats.txt