2021-03-28 23:46:04 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters{
|
2021-03-28 23:51:13 +02:00
|
|
|
buildSelector(
|
2021-03-28 23:46:04 +02:00
|
|
|
defaultSelector: lastSuccessful(),
|
2021-03-28 23:51:13 +02:00
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'WHICH_BUILD'
|
2021-03-28 23:46:04 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
steps {
|
|
|
|
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('copy artifacts')
|
|
|
|
{
|
|
|
|
steps
|
|
|
|
{
|
2021-03-28 23:51:13 +02:00
|
|
|
copyArtifacts filter: 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv', fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: params.WHICH_BUILD
|
2021-03-28 23:46:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('sh: Shell Script')
|
|
|
|
{
|
|
|
|
steps {
|
|
|
|
sh "chmod 777 ./script_stat.sh"
|
|
|
|
sh './script_stat.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stat.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|