changed Jenkinsfile_train
All checks were successful
s437622-training/pipeline/head This commit looks good

This commit is contained in:
Jakub Pogodziński 2021-05-16 08:18:13 +02:00
parent 3a6e95e084
commit 5d6b0d03d4

View File

@ -7,11 +7,6 @@ pipeline {
name: 'BUILD_SELECTOR') name: 'BUILD_SELECTOR')
} }
stages { 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') { stage('Copy artifact') {
steps { steps {
copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: false, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR') copyArtifacts filter: 'dev.csv, train.csv, test.csv', fingerprintArtifacts: false, projectName: 's437622-create-dataset', selector: buildParameter('BUILD_SELECTOR')
@ -29,7 +24,7 @@ pipeline {
} }
} }
stage('Save model') { stage('archiveArtifacts') {
steps { steps {
archiveArtifacts 'model/saved_model.pb' archiveArtifacts 'model/saved_model.pb'
} }
@ -37,9 +32,8 @@ pipeline {
} }
post { post {
success { success {
//Wysłanie maila
emailext body: 'Success train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'Success train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
} }
failure { failure {
emailext body: 'Failed train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'Failed train', subject: 's437622 train', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'