mlflow added to jenkinsfile
Some checks failed
s434742-training/pipeline/head There was a failure building this commit
s434742-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
patrycjalazna 2021-05-23 14:51:42 +02:00
parent e1b7f01f83
commit a788238e58
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ COPY ./avocado-training.py ./
COPY ./avocado-evaluation.py ./
COPY ./sacred-fileobserver.py ./
COPY ./sacred-mongoobserver.py ./
COPY ./avocado-mlflow.py ./
RUN chmod +x ./requirements.txt
RUN chmod +x ./avocado-preprocessing.py
@ -23,6 +24,7 @@ RUN chmod +x ./avocado-training.py
RUN chmod +x ./avocado-evaluation.py
RUN chmod +x ./sacred-fileobserver.py
RUN chmod +x ./sacred-mongoobserver.py
RUN chmod +x ./avocado-mlflow.py
RUN pip3 install -r ./requirements.txt
# CMD python3 avocado-preprocessing.py

View File

@ -37,6 +37,7 @@ pipeline {
sh 'chmod +x avocado-training.py'
sh "echo ${EPOCHS} ${BATCH_SIZE}"
sh "python3 avocado-training.py ${EPOCHS} ${BATCH_SIZE}"
sh "python3 avocado-mlflow.py ${EPOCHS} ${BATCH_SIZE}"
}
}
@ -47,6 +48,8 @@ pipeline {
stage('archiveArtifacts') {
steps{
archiveArtifacts 'avocado_model.h5'
archiveArtifacts 'mlruns/**'
archiveArtifacts 'avocado_model/**'
}
}