ium_444507/Jenkinsfile_evaluation
Adam Wojdyla c3b9c0bda1
Some checks failed
s444507-evaluation/pipeline/head There was a failure building this commit
444507-training/pipeline/head This commit looks good
eval upadate
2022-05-02 00:31:26 +02:00

33 lines
1.3 KiB
Plaintext

pipeline {
agent {
docker { image 's444507_create_dataset_image:latest' }
}
parameters {
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-evaluation', selector: lastSuccessful()
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful()
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-training/${BRANCH}', selector: lastSuccessful()
}
}
stage('Run evaluation') {
steps {
sh "python3 ./lab06_evaluation.py $BUILD_SELECTOR"
}
}
}
post {
success {
archiveArtifacts artifacts: 'metrics.csv', followSymlinks: false
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}