docker-v3

This commit is contained in:
s434732 2021-04-11 19:58:18 +02:00
parent 4b67febc6b
commit 02ab65baae

View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
docker {image 's434732/ium' }
}
parameters {
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
}
@ -8,13 +10,10 @@ pipeline {
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"
}
}
}
}