2022-05-04 16:46:08 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-11 15:08:32 +02:00
|
|
|
docker {
|
|
|
|
image 'maciejczajka'
|
2022-05-11 17:24:39 +02:00
|
|
|
args '-v /mlruns:/mlruns'
|
2022-05-11 15:08:32 +02:00
|
|
|
}
|
2022-05-04 16:46:08 +02:00
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
string(
|
2022-05-11 15:08:32 +02:00
|
|
|
defaultValue: '100',
|
2022-05-04 16:46:08 +02:00
|
|
|
description: 'Number of epochs',
|
|
|
|
name: 'EPOCHS',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Script'){
|
|
|
|
steps {
|
|
|
|
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
|
2022-05-11 15:12:35 +02:00
|
|
|
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
|
2022-05-11 15:08:32 +02:00
|
|
|
archiveArtifacts artifacts: 'games_model.pkl'
|
2022-05-11 17:34:11 +02:00
|
|
|
archiveArtifacts artifacts: 'mlruns/**'
|
2022-05-11 17:40:53 +02:00
|
|
|
archiveArtifacts artifacts: 'my_model/**'
|
2022-05-11 17:34:11 +02:00
|
|
|
sh 'rm -r mlruns'
|
2022-05-11 17:40:53 +02:00
|
|
|
sh 'rm -r my_model'
|
2022-05-11 20:31:48 +02:00
|
|
|
build job: 's444356-evaluation/master/'
|
2022-05-04 16:46:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-11 20:31:48 +02:00
|
|
|
post {
|
|
|
|
success {
|
|
|
|
emailext body: 'SUCCESS', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
failure {
|
|
|
|
emailext body: 'FAILURE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
unstable {
|
|
|
|
emailext body: 'UNSTABLE', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
changed {
|
|
|
|
emailext body: 'CHANGED', subject: 's444356-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
}
|
2022-05-04 16:46:08 +02:00
|
|
|
}
|