ium_464914/stats/Jenkinsfile

27 lines
784 B
Plaintext
Raw Permalink Normal View History

2024-03-26 20:09:49 +01:00
pipeline {
2024-04-02 22:35:43 +02:00
agent {
docker {
image 'aliszu1/ium:1.0'
}
}
2024-03-26 20:09:49 +01:00
parameters {
2024-03-26 20:12:25 +01:00
buildSelector (
2024-03-26 20:09:49 +01:00
defaultSelector: lastSuccessful(),
description: 'Build for copying artifacts',
name: 'BUILD_SELECTOR'
2024-03-26 20:12:25 +01:00
)
2024-03-26 20:09:49 +01:00
}
stages {
stage('Copy Artifacts') {
steps {
2024-03-26 20:14:20 +01:00
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2024-03-26 20:09:49 +01:00
}
}
stage('Build') {
steps {
2024-04-02 22:39:23 +02:00
sh "python3 ./get_stats.py"
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
2024-03-26 20:09:49 +01:00
}
}
}
}