ium_434732/Jenkinsfile2

21 lines
604 B
Plaintext
Raw Normal View History

2021-03-28 21:08:08 +02:00
pipeline {
agent any
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
stages {
stage("One"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2021-04-11 19:56:49 +02:00
def image = docker.build("s434732/ium")
image.inside {
2021-04-11 19:55:36 +02:00
sh 'python3 "./skrypt_stat.py" > stats.txt'
2021-03-28 21:08:08 +02:00
archiveArtifacts "stats.txt"
2021-04-11 19:56:49 +02:00
}
2021-03-28 21:08:08 +02:00
}
}
}
}