mlflow added to jenkinsfile
This commit is contained in:
parent
e1b7f01f83
commit
a788238e58
@ -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
|
||||
|
@ -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/**'
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user