ium_452639/eval.jenkinsfile

40 lines
983 B
Plaintext
Raw Normal View History

2023-05-15 02:40:00 +02:00
node {
checkout scm
def local_image = docker.build("s452639-image")
local_image.inside {
stage('Prepare artifacts') {
try {
2023-05-15 02:43:00 +02:00
copyArtifacts projectName: currentBuild.projectName,
2023-05-15 02:42:03 +02:00
selector: specific("${currentBuild.previousBuild.number}"),
2023-05-15 02:40:00 +02:00
flatten: true,
target: 'src/'
} catch (err) {
echo("with new accuracy log")
}
}
stage('Evaluate') {
checkout([$class: 'GitSCM', branches: [[name: 'ztm']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452639/ium_452639']]])
copyArtifacts fingerprintArtifacts: true,
projectName: 's452639-create-dataset',
selector: lastSuccessful(),
flatten: true,
target: 'src/'
copyArtifacts fingerprintArtifacts: true,
projectName: 's452639-training',
selector: lastSuccessful(),
flatten: true,
target: 'src/'
sh 'cd src; python tf_test.py'
archiveArtifacts artifacts: 'src/stop_times.predictions.tsv,src/stop_times.accuracy.tsv'
}
}
}