added files for dataset-stats

This commit is contained in:
koziej97 2023-03-29 00:28:55 +02:00
parent 9a804e16f1
commit 3f38d6f2bb
2 changed files with 24 additions and 0 deletions

23
Jenkinsfile_stats Normal file
View File

@ -0,0 +1,23 @@
node {
stage('Preparation') {
properties([
parameters([
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
])
])
}
stage('Copy artifacts') {
copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
stage('Script') {
sh 'chmod u+x ./get_stats.sh'
sh './get_stats.sh'
}
stage('Archive artifacts') {
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
}
}

1
get_stats.sh Normal file
View File

@ -0,0 +1 @@
wc -l books_edited.csv > stats.txt