31 lines
952 B
Groovy
31 lines
952 B
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
options {
|
|
copyArtifactPermission('*');
|
|
}
|
|
triggers {
|
|
upstream(upstreamProjects: "s452487-training", threshold: hudson.model.Result.SUCCESS)
|
|
}
|
|
|
|
stages {
|
|
stage('evaluateDataset') {
|
|
steps {
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 's452487-training/train'
|
|
copyArtifacts filter: '*/metrics.json', fingerprintArtifacts: true, projectName: 's452487-evaluation', 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'
|
|
|
|
}
|
|
}
|
|
}
|
|
} |