42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters{
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR')
|
|
}
|
|
stages {
|
|
stage('Clone repository') {
|
|
steps {
|
|
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
|
|
}
|
|
}
|
|
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts(
|
|
projectName: 'z-s487176-create-dataset',
|
|
filter: 'test.csv, train.csv, val.csv',
|
|
selector: buildParameter('BUILD_SELECTOR')
|
|
)
|
|
}
|
|
}
|
|
|
|
stage('Run script') {
|
|
steps {
|
|
sh 'sh datastats.sh'
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|