ium_464913/stats/Jenkinsfile

39 lines
876 B
Plaintext
Raw Normal View History

2024-03-24 12:13:05 +01:00
pipeline {
2024-04-01 19:17:09 +02:00
agent {
docker {
2024-04-01 19:20:15 +02:00
image 'mateusz887/ium:version3.0'
2024-04-01 19:17:09 +02:00
}
2024-04-01 19:14:34 +02:00
}
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:22:19 +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
}
}
}
}