forked from s464914/ium_464914
27 lines
784 B
Groovy
27 lines
784 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'aliszu1/ium:1.0'
|
|
}
|
|
}
|
|
parameters {
|
|
buildSelector (
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Build for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh "python3 ./get_stats.py"
|
|
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
} |