Jakub Pogodziński
4d8739503e
Some checks failed
s437622-training/pipeline/head There was a failure building this commit
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
pipeline{
|
|
agent any
|
|
parameters{
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR')
|
|
}
|
|
stages{
|
|
stage('Copy artifacts'){
|
|
copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: false, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
stage('Docker') {
|
|
steps {
|
|
script {
|
|
def img=docker.build('jpogodzinski/ium:1')
|
|
img.inside {
|
|
sh 'rm -rf ium_s437622'
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s437622/ium_s437622.git'
|
|
sh "chmod +x ium_s437622/stats.sh"
|
|
sh "ium_437622/stats.sh"
|
|
}}
|
|
}
|
|
}
|
|
stage('Archive artifacts'){
|
|
steps{
|
|
archiveArtifacts 'stats.txt'
|
|
}
|
|
}
|
|
}
|
|
} |