ium_434804/Jenkinsfile_stats
2021-04-08 23:23:08 +02:00

28 lines
833 B
Plaintext

pipeline {
agent {
docker { image 'ubuntu:latest' }
}
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"
}
}
stage("Docker Image"){
agent {
docker {
image "s434804/ium:0.1"
}
}
steps {
sh 'python3 ./stats.py'
}
}
}
}