32 lines
1.0 KiB
Groovy
32 lines
1.0 KiB
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
options {
|
|
copyArtifactPermission('*');
|
|
}
|
|
triggers {
|
|
upstream(upstreamProjects: "s452487-training/train", threshold: hudson.model.Result.SUCCESS)
|
|
}
|
|
|
|
stages {
|
|
stage('evaluateDataset') {
|
|
steps {
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'z-s452487-create-dataset'
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 's452487-training/train'
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 's452487-evaluation/evaluate', optional: true
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
|
sh './evaluate.sh'
|
|
}
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
steps {
|
|
echo "Zapisywanie artefaktów..."
|
|
archiveArtifacts 'metrics.jpg'
|
|
archiveArtifacts 'metrics.json'
|
|
archiveArtifacts 'predictions.txt'
|
|
archiveArtifacts 'predictions_two_digits.txt'
|
|
|
|
}
|
|
}
|
|
}
|
|
} |