Jenkinsfile update
Some checks failed
s444507-predict-s444356/pipeline/head This commit looks good
s444507-evaluation/pipeline/head This commit looks good
444507-training/pipeline/head There was a failure building this commit

This commit is contained in:
Adam Wojdyla 2022-05-16 09:26:07 +02:00
parent b973488507
commit 128ed74433
2 changed files with 9 additions and 7 deletions

4
.gitignore vendored
View File

@ -156,4 +156,6 @@ Car_Prices_Poland_Kaggle*
CarPrices* CarPrices*
IUM08/* IUM08/*
.DS_store .DS_store
*.db *.db
mlruns
my_model

View File

@ -9,9 +9,14 @@ pipeline {
string(name: 'epoch', defaultValue: '100', description: 'Number of epochs to train model.') string(name: 'epoch', defaultValue: '100', description: 'Number of epochs to train model.')
} }
stages { stages {
stage('Get arifacts') { stage('Get artifacts') {
steps { steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful() copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful()
}
}
stage('Run mlflow script and save artifacts') {
steps {
sh "python3 lab08_deepLearining_mlflow.py $epoch"
archiveArtifacts artifacts: 'CarPrices_pytorch_model.pkl' archiveArtifacts artifacts: 'CarPrices_pytorch_model.pkl'
archiveArtifacts artifacts: 'mlruns/**' archiveArtifacts artifacts: 'mlruns/**'
archiveArtifacts artifacts: 'my_model/**' archiveArtifacts artifacts: 'my_model/**'
@ -19,11 +24,6 @@ pipeline {
sh 'rm -r my_model' sh 'rm -r my_model'
} }
} }
stage('Train model with sacred') {
steps {
sh "python3 lab08_deepLearining_mlflow.py $epoch"
}
}
} }
post { post {
always { always {