ium_464914/stats/Jenkinsfile
Alicja Szulecka c0a52a095b fix
2024-04-02 22:39:23 +02:00

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
}
}
}
}