30 lines
776 B
Plaintext
30 lines
776 B
Plaintext
pipeline {
|
|
agent any;
|
|
parameters{
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
stages{
|
|
stage('copy-artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
|
|
stage('evaluation') {
|
|
steps {
|
|
script {
|
|
def image = docker.build('dock')
|
|
image.inside{
|
|
sh 'chmod +x evaluation.py'
|
|
sh 'python3 evaluation.py'
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |