21 lines
604 B
Plaintext
21 lines
604 B
Plaintext
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')
|
|
|
|
def image = docker.build("s434732/ium")
|
|
image.inside {
|
|
sh 'python3 "./skrypt_stat.py" > stats.txt'
|
|
|
|
archiveArtifacts "stats.txt"
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |