Update 'Jenkinsfile-dataset-stats'

This commit is contained in:
Marcin Rostkowski 2023-04-19 21:04:37 +02:00
parent 2c13822564
commit 654c899840

View File

@ -0,0 +1,38 @@
pipeline {
agent any
parameters {
string(
defaultValue: 'z-s487177-create-dataset',
description: 'Name of the project to copy artifacts from',
name: 'PROJECT_NAME',
trim: true
)
buildSelector(
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR',
defaultSelector: 'lastSuccessful()'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts(
fingerprintArtifacts: true,
projectName: "${params.PROJECT_NAME}",
selector: buildSelector("${params.BUILD_SELECTOR}")
)
}
}
stage('Run script') {
steps {
sh '''
chmod +x dataset_stats.sh
./dataset_stats.sh > stats.txt
'''
archiveArtifacts artifacts: 'stats.txt', fingerprint: true
}
}
}
}