ium_464913/stats/Jenkinsfile

37 lines
858 B
Plaintext
Raw Normal View History

2024-03-24 12:13:05 +01:00
pipeline {
2024-04-01 19:14:34 +02:00
agent docker {
image 'mateusz887/ium:latest'
}
2024-03-24 12:13:05 +01:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Clone Repository') {
steps {
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913.git'
}
}
stage('Copy Artifacts') {
steps {
2024-04-01 19:14:34 +02:00
copyArtifacts filter: 'data/*', projectName: 'z-s464913-create-dataset-1', selector: buildParameter('BUILD_SELECTOR')
2024-03-24 12:13:05 +01:00
}
}
stage('Generate Report') {
steps {
2024-04-01 19:14:34 +02:00
sh 'chmod +x dataset_stats.py'
sh './dataset_stats.py'
2024-03-24 12:13:05 +01:00
}
}
stage('Archive Artifacts') {
steps {
2024-03-24 12:55:09 +01:00
archiveArtifacts artifacts: 'stats_data/*', onlyIfSuccessful: true
2024-03-24 12:13:05 +01:00
}
}
}
}