ium_487197/Jenkinsfile_evaluation

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-05-12 01:16:44 +02:00
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: '1',
description: 'Build number',
name: 'build'),
gitParameter(
branchFilter: 'origin/(.*)',
defaultValue: 'master',
name: 'BRANCH',
type: 'PT_BRANCH'
),
])
])
}
stage('checkout: Check out from version control') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
}
stage('Dockerfile'){
2023-05-12 01:40:40 +02:00
def testImage = docker.image('s487197/ium:38')
2023-05-12 01:16:44 +02:00
testImage.inside{
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
copyArtifacts filter: 'baltimore_test.csv', projectName: 's487197-create-dataset'
2023-05-12 01:35:58 +02:00
copyArtifacts filter: 'baltimore.zip', fingerprintArtifacts: true, projectName: "s487197-training/$BRANCH"
2023-05-12 01:16:44 +02:00
copyArtifacts filter: 'metrics.csv', projectName: "s487197-evaluation.eg/$BRANCH", optional: true
sh "python3 ium_predict.py -build $BUILD"
archiveArtifacts artifacts: 'metrics.csv, listfile.txt, metrics_img.png', onlyIfSuccessful: true
}
}
}