From e0e24e85a80639c083b5a9a871bcb1fdb5e1b9c5 Mon Sep 17 00:00:00 2001 From: Kornelia Girejko Date: Sun, 15 May 2022 12:45:37 +0200 Subject: [PATCH] Dodanie 'Jenkinsfile_mlflow' --- Jenkinsfile_mlflow | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Jenkinsfile_mlflow diff --git a/Jenkinsfile_mlflow b/Jenkinsfile_mlflow new file mode 100644 index 0000000..0453cb4 --- /dev/null +++ b/Jenkinsfile_mlflow @@ -0,0 +1,41 @@ +pipeline { + agent { + docker { image 'korneliag/ium478815:1.0' } + } + } + parameters { + string( + defaultValue: 'kgirejko', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', + trim: false + ) + + password( + defaultValue: '51854c15661583860a60db232a7026f0', + description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', + name: 'KAGGLE_KEY' + ) + + string( + defaultValue: '1000', + description: 'Number of epochs', + name: 'EPOCHS', + trim: false + ) + } + + stages { + stage('Main train'){ + steps { + copyArtifacts filter: '*', projectName: 's478815-create-dataset' + sh 'python3 ./train-mlflow.py with "epochs=$EPOCHS"' + + #archiveArtifacts artifacts: 'modelS.pkl, output.txt' + + #build job: 's478815-evaluation/master/' + } + } + } + +} \ No newline at end of file