IUM_s464980/stats/Jenkinsfile

33 lines
955 B
Plaintext
Raw Normal View History

2024-03-26 19:05:13 +01:00
pipeline {
2024-04-02 20:02:32 +02:00
agent {
docker {
image 'sheaza/ium_464980:latest'
}
}
2024-03-26 19:05:13 +01:00
parameters {
buildSelector (
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout repository') {
steps {
checkout scm
2024-03-26 19:06:29 +01:00
}
2024-03-26 19:05:13 +01:00
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464980-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Get stats') {
steps {
2024-04-02 20:02:32 +02:00
sh "chmod +x get_stats.py"
sh "python3 ./get_stats.py"
2024-03-26 19:05:13 +01:00
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
}
}
}
}