2023-05-15 02:40:00 +02:00
|
|
|
node {
|
|
|
|
checkout scm
|
|
|
|
|
|
|
|
def local_image = docker.build("s452639-image")
|
|
|
|
|
|
|
|
local_image.inside {
|
2023-05-15 02:50:11 +02:00
|
|
|
stage('Prepare accuracy log') {
|
2023-05-15 02:40:00 +02:00
|
|
|
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') {
|
2023-05-15 02:50:11 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: BRANCH_NAME]], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452639/ium_452639']]])
|
2023-05-15 02:40:00 +02:00
|
|
|
|
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
|
|
|
projectName: 's452639-create-dataset',
|
|
|
|
selector: lastSuccessful(),
|
|
|
|
flatten: true,
|
|
|
|
target: 'src/'
|
|
|
|
|
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
2023-05-15 02:50:11 +02:00
|
|
|
projectName: "s452639-training/${BRANCH_NAME}",
|
2023-05-15 02:40:00 +02:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|