ium_444417/Jenkinsfile3
s444417 5fb0ce644b
All checks were successful
s444417-training/pipeline/head This commit looks good
s444417-evaluation/pipeline/head This commit looks good
fox spell
2022-05-14 12:21:41 +02:00

53 lines
1.3 KiB
Plaintext

pipeline {
agent {
docker {
image 'mikolajk/ium:mlflow'
args '-v /mlruns:/mlruns'
}
}
parameters{
string(
defaultValue: '5',
description: 'Epoch number',
name: 'EPOCH_NUMBER'
)
}
stages {
stage('Copy') {
steps {
copyArtifacts projectName: 's444417-create-dataset'
sh 'ls -la'
sh 'echo $EPOCH_NUMBER'
sh 'python3 ./lab8/trainScript.py'
}
}
stage('Archive') {
steps {
dir('saved_model') {
archiveArtifacts artifacts: '**/**'
}
dir('my_runs') {
archiveArtifacts artifacts: '**/**'
}
}
}
stage('Starting eval job') {
steps {
build job: 's444417-evaluation/master', wait: false
}
}
stage('Archive mlflow') {
steps {
sh 'cd ./lab8'
}
}
}
options {
copyArtifactPermission('s444417-evaluation');
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}