ium_434760/Jenkinsfile-stat

27 lines
707 B
Plaintext
Raw Normal View History

2021-03-28 23:46:04 +02:00
pipeline {
2021-04-11 23:06:50 +02:00
agent {
docker { image 'adnovac/ium_s434760:latest' }
}
2021-03-28 23:46:04 +02:00
parameters{
2021-03-28 23:51:13 +02:00
buildSelector(
2021-03-28 23:46:04 +02:00
defaultSelector: lastSuccessful(),
2021-03-28 23:51:13 +02:00
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
2021-03-28 23:46:04 +02:00
)
}
stages {
stage('copy artifacts')
{
steps
{
2021-03-29 00:00:44 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: buildParameter('WHICH_BUILD'))
2021-04-11 23:06:50 +02:00
sh 'python3.8 stats.py'
2021-03-28 23:46:04 +02:00
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'stat.txt'
}
}
}
}