2021-05-15 18:39:17 +02:00
|
|
|
pipeline{
|
2021-05-15 18:18:35 +02:00
|
|
|
agent any
|
2021-05-15 18:39:17 +02:00
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
}
|
2021-05-15 18:18:35 +02:00
|
|
|
stages{
|
2021-05-15 18:39:17 +02:00
|
|
|
stage('Copy artifacts'){
|
2021-05-16 07:59:49 +02:00
|
|
|
steps{
|
|
|
|
copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: false, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
2021-05-15 18:18:35 +02:00
|
|
|
}
|
2021-05-15 18:39:17 +02:00
|
|
|
stage('Docker') {
|
|
|
|
steps {
|
|
|
|
script {
|
2021-05-15 19:08:29 +02:00
|
|
|
def img=docker.build('jpogodzinski/ium:1')
|
|
|
|
img.inside {
|
2021-05-15 18:39:17 +02:00
|
|
|
sh 'rm -rf ium_s437622'
|
2021-05-16 08:13:27 +02:00
|
|
|
sh "git clone https://git.wmi.amu.edu.pl/s437622/ium_s437622.git"
|
2021-05-15 18:39:17 +02:00
|
|
|
sh "chmod +x ium_s437622/stats.sh"
|
|
|
|
sh "ium_437622/stats.sh"
|
2021-05-16 07:54:14 +02:00
|
|
|
archiveArtifacts 'stats.txt'
|
2021-05-15 18:39:17 +02:00
|
|
|
}}
|
|
|
|
}
|
2021-05-15 18:18:35 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 18:39:17 +02:00
|
|
|
}
|