add get stats script
This commit is contained in:
parent
318310642d
commit
8be8cdf210
27
stats/Jenkinsfile
vendored
Normal file
27
stats/Jenkinsfile
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user