2021-03-28 21:38:23 +02:00
|
|
|
pipeline {
|
2021-04-08 23:54:56 +02:00
|
|
|
agent any
|
2021-03-28 21:38:23 +02:00
|
|
|
parameters {
|
|
|
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("Clone repo & print stats"){
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434804-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
sh "chmod 777 ./stats.sh"
|
|
|
|
sh "./stats.sh"
|
|
|
|
archiveArtifacts "stats.txt"
|
|
|
|
}
|
|
|
|
}
|
2021-04-08 23:23:08 +02:00
|
|
|
stage("Docker Image"){
|
|
|
|
agent {
|
|
|
|
docker {
|
2021-04-09 00:07:04 +02:00
|
|
|
image "s434804/ium:0.3"
|
2021-04-08 23:23:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'python3 ./stats.py'
|
|
|
|
}
|
|
|
|
}
|
2021-03-28 21:38:23 +02:00
|
|
|
}
|
|
|
|
}
|