ium_444463/Jenkinsfile.stats

31 lines
1023 B
Plaintext
Raw Normal View History

2022-03-27 22:16:17 +02:00
pipeline {
2022-04-03 12:05:23 +02:00
agent {
2022-04-03 12:10:18 +02:00
docker { image 'mikolajpokrywka/ium:0.0.0' }
2022-04-03 12:05:23 +02:00
}
2022-03-27 22:24:48 +02:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
2022-03-27 22:16:17 +02:00
)
2022-03-27 22:24:48 +02:00
}
stages {
stage('checkout: Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
}
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444463-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage("Calcualte stats") {
steps {
2022-04-03 12:17:21 +02:00
sh "python3 stats.py"
2022-03-27 22:24:48 +02:00
archiveArtifacts artifacts: "stats.txt"
}
}
}
2022-03-27 22:16:17 +02:00
}