Update 'Jenkinsfile-dataset-stats'
This commit is contained in:
parent
2c13822564
commit
654c899840
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user