From 0896e331a77f2012f1af2add03f1e3344300ecf7 Mon Sep 17 00:00:00 2001 From: Maciej Czajka Date: Mon, 9 May 2022 21:59:52 +0200 Subject: [PATCH] update jenkinsfile_train-sacred --- Jenkinsfile_train-mlflow | 38 -------------------------------------- Jenkinsfile_train-sacred | 16 ++++++---------- 2 files changed, 6 insertions(+), 48 deletions(-) delete mode 100644 Jenkinsfile_train-mlflow diff --git a/Jenkinsfile_train-mlflow b/Jenkinsfile_train-mlflow deleted file mode 100644 index 06129a2..0000000 --- a/Jenkinsfile_train-mlflow +++ /dev/null @@ -1,38 +0,0 @@ -pipeline { - agent { - docker { - image 'maciejczajka' - } - } - parameters { - string( - defaultValue: '100', - description: 'Number of epochs', - name: 'EPOCHS', - trim: false - ) - } - stages { - stage('Script'){ - steps { - copyArtifacts filter: '*', projectName: 's444356-create-dataset' - sh 'python Biblioteka_DL/dllib-sacred.py -e ${params.EPOCHS}' - archiveArtifacts artifacts: 'games_model.pkl' - } - } - } - post { - success { - emailext body: 'SUCCESS', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' - } - failure { - emailext body: 'FAILURE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' - } - unstable { - emailext body: 'UNSTABLE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' - } - changed { - emailext body: 'CHANGED', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' - } - } -} \ No newline at end of file diff --git a/Jenkinsfile_train-sacred b/Jenkinsfile_train-sacred index 9e070b1..06129a2 100644 --- a/Jenkinsfile_train-sacred +++ b/Jenkinsfile_train-sacred @@ -1,12 +1,12 @@ pipeline { agent { - dockerfile { - additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka" - } + docker { + image 'maciejczajka' + } } parameters { string( - defaultValue: '1000', + defaultValue: '100', description: 'Number of epochs', name: 'EPOCHS', trim: false @@ -16,12 +16,8 @@ pipeline { stage('Script'){ steps { copyArtifacts filter: '*', projectName: 's444356-create-dataset' - sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"' - sh 'ls my_res' - sh 'cp -r my_res res' - archiveArtifacts artifacts: 'games_model.pkl, res/**/*.*' - sh 'rm -r my_res' - sh 'rm -r res' + sh 'python Biblioteka_DL/dllib-sacred.py -e ${params.EPOCHS}' + archiveArtifacts artifacts: 'games_model.pkl' } } }