2023-04-19 18:40:46 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2023-04-19 19:00:50 +02:00
|
|
|
parameters{
|
2023-04-19 18:40:46 +02:00
|
|
|
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 18:40:46 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-19 23:24:36 +02:00
|
|
|
stage('Docker'){
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
}
|
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:40:46 +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:40:46 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-19 18:46:03 +02:00
|
|
|
|
2023-04-19 18:40:46 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-19 18:58:42 +02:00
|
|
|
|