2024-03-20 19:01:16 +01:00
|
|
|
pipeline {
|
2024-03-29 15:40:28 +01:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'dzikafoczka/ium:latest'
|
|
|
|
}
|
|
|
|
}
|
2024-03-20 19:01:16 +01:00
|
|
|
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Build to extract artifacts from',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone repository') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
2024-03-20 19:07:25 +01:00
|
|
|
copyArtifacts projectName: 'z-s464863-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2024-03-20 19:01:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Get statistics') {
|
|
|
|
steps {
|
2024-03-29 15:40:28 +01:00
|
|
|
sh "chmod +x get_stats.py"
|
|
|
|
sh "python3 get_stats.py"
|
2024-03-20 19:01:16 +01:00
|
|
|
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|