ium_487176/Jenkinsfile-dataset_stats

42 lines
1.2 KiB
Plaintext
Raw Normal View History

pipeline {
2023-04-19 23:28:24 +02:00
agent {
dockerfile {image 'mactyc/ium'}
2023-04-19 23:28:24 +02:00
}
2023-04-19 19:00:50 +02:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
2023-04-19 19:00:50 +02:00
}
2023-04-19 18:46:03 +02:00
stages {
stage('Clone repository') {
steps {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
}
}
2023-04-19 23:28:24 +02:00
2023-04-19 18:46:03 +02:00
stage('Copy Artifacts') {
2023-04-19 18:58:42 +02:00
steps {
copyArtifacts(
2023-04-19 18:46:03 +02:00
projectName: 'z-s487176-create-dataset',
2023-04-19 18:58:42 +02:00
filter: 'test.csv, train.csv, val.csv',
2023-04-19 18:46:03 +02:00
selector: buildParameter('BUILD_SELECTOR')
2023-04-19 18:58:42 +02:00
)
2023-04-19 18:46:03 +02:00
}
}
2023-04-19 18:46:03 +02:00
stage('Run script') {
steps {
sh 'sh datastats.sh'
}
post {
always {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
2023-04-19 18:46:03 +02:00
}
}
2023-04-19 18:58:42 +02:00