add get stats script

This commit is contained in:
Sheaza 2024-03-26 19:05:13 +01:00
parent 318310642d
commit 8be8cdf210
2 changed files with 27 additions and 0 deletions

27
stats/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,27 @@
pipeline {
agent any
parameters {
buildSelector (
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout repository') {
steps {
checkout scm
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464980-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Get stats') {
steps {
sh "./get_stats.sh"
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
}
}
}
}