28 lines
937 B
Plaintext
28 lines
937 B
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile true
|
||
|
}
|
||
|
parameters {
|
||
|
buildSelector(
|
||
|
defaultSelector: lastSuccessful(),
|
||
|
description: 'Which build to use for copying artifacts',
|
||
|
name: 'BUILD_SELECTOR'
|
||
|
)
|
||
|
}
|
||
|
stages {
|
||
|
stage('Check out from version control') {
|
||
|
steps {
|
||
|
checkout([$class: 'GitSCM', branches: [[name: '*/training_and_evaluation']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
|
||
|
}
|
||
|
}
|
||
|
stage('Script') {
|
||
|
steps {
|
||
|
copyArtifacts filter: '*', projectName:'s444421-training/training_and_evaluation', selector: buildParameter('BUILD_SELECTOR')
|
||
|
copyArtifacts filter: '*', projectName:'s444421-evaluation/training_and_evaluation', optional: true
|
||
|
sh 'ipython ./evaluation.py'
|
||
|
archiveArtifacts artifacts: 'build_accuracy.txt'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|