diff --git a/jenkins/evaluate.Jenkinsfile b/jenkins/evaluate.Jenkinsfile index c3934d0..4aba4f6 100644 --- a/jenkins/evaluate.Jenkinsfile +++ b/jenkins/evaluate.Jenkinsfile @@ -13,9 +13,11 @@ pipeline { stages { stage('Copy artifacts') { steps { - git branch: '${params.BRANCH}', url: 'https://git.wmi.amu.edu,pl/s478841/ium_478841/${BRANCH}/', selector: buildParameter('BUILD_SELECTOR') + git branch: '${params.BRANCH_NAME}', url: 'https://git.wmi.amu.edu,pl/s478841/ium_478841.git' + copyArtifacts filter: 'data/*test*', fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: buildParameter('BUILD_SELECTOR') - copyArtifacts filter: 'evaluation_results.txt', projectName: 's478841-evaluation/develop/', optional: true + copyArtifacts filter: 'data/*model*', fingerprintArtifacts: true, projectName: 's478841-training/${BRANCH_NAME}', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts filter: 'evaluation_results.csv', projectName: 's478841-evaluation/${BRANCH_NAME}/', optional: true } } stage('Evaluate model') { @@ -26,8 +28,8 @@ pipeline { } stage('Archive artifacts') { steps { - archiveArtifacts 'evaluation_results.txt', onlyIfSuccessful: true - archiveArtifacts 'plots.png', onlyIfSuccessful: true + archiveArtifacts '*data/evaluation_results.csv', onlyIfSuccessful: true + archiveArtifacts '*data/plots.png', onlyIfSuccessful: true } } }