docker-v3
This commit is contained in:
parent
4b67febc6b
commit
02ab65baae
@ -1,5 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
docker {image 's434732/ium' }
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
||||||
}
|
}
|
||||||
@ -8,8 +10,6 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
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'
|
sh 'python3 "./skrypt_stat.py" > stats.txt'
|
||||||
|
|
||||||
archiveArtifacts "stats.txt"
|
archiveArtifacts "stats.txt"
|
||||||
@ -17,5 +17,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user