2021-05-15 19:08:29 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Copy artifact') {
|
|
|
|
steps {
|
|
|
|
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 'chmod +x zad5.py'
|
|
|
|
sh 'python3 ./zad5.py'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-16 08:18:13 +02:00
|
|
|
stage('archiveArtifacts') {
|
2021-05-15 19:08:29 +02:00
|
|
|
steps {
|
2021-05-16 08:49:46 +02:00
|
|
|
archiveArtifacts 'model'
|
2021-05-15 19:08:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
emailext body: 'Success train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-16 08:49:46 +02:00
|
|
|
}
|
2021-05-15 19:08:29 +02:00
|
|
|
|
|
|
|
failure {
|
2021-05-15 19:25:44 +02:00
|
|
|
emailext body: 'Failed train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-15 19:08:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|