IUM_s464980/stats/Jenkinsfile
2024-04-02 20:09:12 +02:00

33 lines
954 B
Groovy

pipeline {
agent {
docker {
image 'sheaza/ium_464980:latest'
}
}
parameters {
buildSelector (
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout repository') {
steps {
checkout scm
}
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464980-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Get stats') {
steps {
sh "chmod +x get_stats.py"
sh "python ./get_stats.py"
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
}
}
}
}