forked from s464914/ium_464914
23 lines
702 B
Groovy
23 lines
702 B
Groovy
pipeline {
|
|
agent any
|
|
parameters {
|
|
buildSelector (
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Build for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh "bash ./stats_dataset.sh"
|
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
} |