Dodanie 'Jenkins_evaluation'
This commit is contained in:
parent
25c9dec837
commit
8e4108b012
38
Jenkins_evaluation
Normal file
38
Jenkins_evaluation
Normal file
@ -0,0 +1,38 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(name: 'Build', defaultValue: '1', description: 'Build num')
|
||||
}
|
||||
stages {
|
||||
stage('checkout: Check out from version control') {
|
||||
steps {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487194', url: 'https://git.wmi.amu.edu.pl/s487194/ium_487194']]])
|
||||
}
|
||||
}
|
||||
stage('Docker'){
|
||||
steps {
|
||||
script {
|
||||
def dockerImage = docker.image('s487194/ium:lab5_6')
|
||||
dockerImage.inside {
|
||||
copyArtifacts filter: 'classificationn_model.pt', projectName: "s487194-training/$BRANCH_NAME", optional: false
|
||||
sh "python3 evaluate.py -build ${params.Build}"
|
||||
|
||||
archiveArtifacts artifacts: 'predictions.txt, metrics.txt', onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user