add parameters

This commit is contained in:
Sebastian Wałęsa 2022-05-06 23:29:05 +02:00
parent 084e4e3784
commit 973e2d7d43

View File

@ -4,11 +4,20 @@ pipeline {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t sebastianwalesa"
}
}
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Evaluate'){
steps {
copyArtifacts filter: '*', projectName: 's478839-create-dataset'
copyArtifacts filter: '*', projectName: 's478839-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter: '*', projectName: 's478839-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts filter: '*', projectName: 's478839-evaluation/master', selector: buildParameter('BUILD_SELECTOR'), optional: true
sh 'python3 ./ml_pytorch_results.py'
archiveArtifacts artifacts: 'metrics.txt, MSE.txt, RMSplot.png', followSymlinks: false
script {