ium_s437622/Jenkinsfile_train
Jakub Pogodziński aaaf3574dd
Some checks failed
s437622-training/pipeline/head There was a failure building this commit
redo jenkinsfile_train
2021-05-15 19:42:42 +02:00

49 lines
1.4 KiB
Plaintext

pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s437622/ium_437622']]])
}
}
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'
}
}
}
}
stage('Save model') {
steps {
archiveArtifacts 'model/saved_model.pb'
}
}
}
post {
success {
//Wysłanie maila
emailext body: 'Success train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'Failed train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}