36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
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'){
|
|
def testImage = docker.image('s487197/ium:38')
|
|
testImage.inside{
|
|
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
|
|
copyArtifacts filter: 'baltimore_test.csv', projectName: 's487197-create-dataset'
|
|
copyArtifacts filter: 'baltimore.zip', fingerprintArtifacts: true, projectName: "s487197-training/$BRANCH"
|
|
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
|
|
|
|
|
|
}
|
|
|
|
}
|
|
} |