Jenkinsfile update
This commit is contained in:
parent
b973488507
commit
128ed74433
4
.gitignore
vendored
4
.gitignore
vendored
@ -156,4 +156,6 @@ Car_Prices_Poland_Kaggle*
|
|||||||
CarPrices*
|
CarPrices*
|
||||||
IUM08/*
|
IUM08/*
|
||||||
.DS_store
|
.DS_store
|
||||||
*.db
|
*.db
|
||||||
|
mlruns
|
||||||
|
my_model
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user