From d4e1066199d409e4d9bbf7fa966009ad31fb0bc8 Mon Sep 17 00:00:00 2001 From: AdamOsiowy123 Date: Sun, 15 May 2022 23:21:05 +0200 Subject: [PATCH] mlflow fix5 --- Dockerfile | 3 +-- Jenkins/Jenkinsfile.training | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf992bb..c06b36d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,4 @@ WORKDIR /code COPY . /code/ RUN python3 -m pip install -r requirements.txt -RUN mkdir /.kaggle && chmod o+w /.kaggle -RUN mkdir /code/mlruns && chmod o+w /code/mlruns \ No newline at end of file +RUN mkdir /.kaggle && chmod o+w /.kaggle \ No newline at end of file diff --git a/Jenkins/Jenkinsfile.training b/Jenkins/Jenkinsfile.training index 7c60cce..4e71564 100644 --- a/Jenkins/Jenkinsfile.training +++ b/Jenkins/Jenkinsfile.training @@ -41,6 +41,7 @@ node { stage('Run script') { withEnv(["DATA_PATH=${params.DATA_PATH}","EPOCHS=${params.EPOCHS}","NUM_WORDS=${params.NUM_WORDS}", "BATCH_SIZE=${params.BATCH_SIZE}","PAD_LENGTH=${params.PAD_LENGTH}"]) { + sh "chmod +x Scripts/train_neural_network.py" sh "python3 Scripts/train_neural_network.py $DATA_PATH $EPOCHS $NUM_WORDS $BATCH_SIZE $PAD_LENGTH" } } @@ -48,6 +49,8 @@ node { archiveArtifacts "model/neural_net" archiveArtifacts "my_runs/**" archiveArtifacts "mlruns/**" + archiveArtifacts "/mlruns/**" + archiveArtifacts "/code/mlruns/**" } } } catch (e) {