ium_444507/Jenkinsfile_training
Adam Wojdyla 5391120270
All checks were successful
s444507-predict-s444356/pipeline/head This commit looks good
s444507-evaluation/pipeline/head This commit looks good
444507-training/pipeline/head This commit looks good
Update jenkinsfile training dont copy artifacts
2022-05-16 09:40:16 +02:00

29 lines
845 B
Plaintext

pipeline {
agent {
docker {
image 's444507_create_dataset_image:latest'
args '-v /mlruns:/mlruns'
}
}
parameters {
string(name: 'epoch', defaultValue: '100', description: 'Number of epochs to train model.')
}
stages {
stage('Get artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful()
}
}
stage('Run mlflow script and save artifacts') {
steps {
sh "python3 lab08_deepLearining_mlflow.py $epoch"
}
}
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}