.
Some checks failed
s434784-evaluation/pipeline/head There was a failure building this commit
s434784-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Sobkowiak 2021-05-16 21:35:29 +02:00
parent bdbde335e9
commit 2bdbb4c1c3

View File

@ -1,35 +1,30 @@
pipeline { pipeline {
agent any; agent any;
parameters{
parameters { buildSelector(
buildSelector( defaultSelector: lastSuccessful(),
defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts',
description: 'Which build to use for copying data artifacts', name: 'BUILD_SELECTOR'
name: 'BUILD_SELECTOR_DATASET'
) )
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' }
} stages{
stage('copy-artifacts') {
stages { steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
stage('copy-artifacts') }
{ }
steps
{
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('evaluation') { stage('evaluation') {
steps { steps {
script { script {
def image = docker.build('dock') def image = docker.build('dock')
image.inside{ image.inside{
sh 'chmod +x evaluation.py' sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py' sh 'python3 evaluation.py'
}
} }
} }
} }
} }
}
} }