33 lines
785 B
Groovy
33 lines
785 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Build to extract artifacts from',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('Clone repository') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
|
|
stage('Copy artifacts') {
|
|
steps {
|
|
copyArtifacts projectName: 'z-s464863-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
|
|
stage('Get statistics') {
|
|
steps {
|
|
sh "chmod +x get_stats.sh"
|
|
sh "./get_stats.sh"
|
|
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
} |