From 5d6b0d03d46a1e6e4133801ff34a59f24aa3da4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Pogodzi=C5=84ski?= Date: Sun, 16 May 2021 08:18:13 +0200 Subject: [PATCH] changed Jenkinsfile_train --- Jenkinsfile_train | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile_train b/Jenkinsfile_train index 4d4c56a..0598195 100644 --- a/Jenkinsfile_train +++ b/Jenkinsfile_train @@ -7,11 +7,6 @@ pipeline { 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') @@ -29,7 +24,7 @@ pipeline { } } - stage('Save model') { + stage('archiveArtifacts') { steps { archiveArtifacts 'model/saved_model.pb' } @@ -37,9 +32,8 @@ pipeline { } 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'