ium_444421/evaluation.Jenkinsfile

26 lines
1023 B
Plaintext
Raw Normal View History

2022-04-29 20:55:27 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
2022-05-01 09:38:02 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'training_and_evaluation', name: 'BRANCH', type: 'PT_BRANCH'
2022-04-29 20:55:27 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
2022-05-01 09:38:02 +02:00
stage('Stage 1') {
2022-04-29 20:55:27 +02:00
steps {
2022-05-01 09:38:02 +02:00
git branch: "${params.BRANCH}", url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git'
2022-04-29 21:11:53 +02:00
copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2022-05-01 09:46:30 +02:00
copyArtifacts filter: '*', projectName:'s444421-training/${BRANCH}/', selector: buildParameter('BUILD_SELECTOR')
2022-04-29 20:55:27 +02:00
copyArtifacts filter: '*', projectName:'s444421-evaluation/training_and_evaluation', optional: true
sh 'ipython ./evaluation.py'
2022-04-29 22:51:30 +02:00
archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg'
2022-04-29 20:55:27 +02:00
}
}
}
}