2024-03-24 17:02:18 +01:00
|
|
|
pipeline {
|
2024-04-01 20:04:28 +02:00
|
|
|
agent { dockerfile true }
|
2024-05-04 16:46:48 +02:00
|
|
|
options {
|
|
|
|
copyArtifactPermission('*');
|
|
|
|
}
|
2024-05-04 16:48:01 +02:00
|
|
|
triggers {
|
|
|
|
upstream(upstreamProjects: "s452487-training", threshold: hudson.model.Result.SUCCESS)
|
|
|
|
}
|
2024-05-04 16:46:48 +02:00
|
|
|
|
2024-04-01 20:04:28 +02:00
|
|
|
stages {
|
2024-05-04 15:29:58 +02:00
|
|
|
stage('evaluateDataset') {
|
2024-04-01 20:04:28 +02:00
|
|
|
steps {
|
2024-05-04 15:29:58 +02:00
|
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 's452487-training'
|
2024-05-04 16:46:48 +02:00
|
|
|
copyArtifacts filter: '*/metrics.json', fingerprintArtifacts: true, projectName: 's452487-evaluation', optional: true
|
2024-05-04 14:02:41 +02:00
|
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
2024-05-04 15:29:58 +02:00
|
|
|
sh './evaluate.sh'
|
2024-04-01 20:04:28 +02:00
|
|
|
}
|
|
|
|
}
|
2024-05-04 13:28:38 +02:00
|
|
|
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
echo "Zapisywanie artefaktów..."
|
2024-05-04 16:43:16 +02:00
|
|
|
archiveArtifacts 'metrics.jpg'
|
|
|
|
archiveArtifacts 'metrics.json'
|
|
|
|
archiveArtifacts 'predictions.txt'
|
|
|
|
archiveArtifacts 'predictions_two_digits.txt'
|
|
|
|
|
2024-05-04 13:28:38 +02:00
|
|
|
}
|
|
|
|
}
|
2024-04-01 20:04:28 +02:00
|
|
|
}
|
2024-03-20 14:28:52 +01:00
|
|
|
}
|