ium_487184/JenkinsfileEvaluate

46 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-06-28 22:40:30 +02:00
pipeline {
agent any
parameters {
buildSelector(
name: 'BUILD_SELECTOR',
defaultSelector: lastSuccessful(),
description: 'A build to take the artifacts from'
)
string(
name: 'EPOCHS',
description: 'Number of epochs',
defaultValue: '10'
)
}
stages {
stage('Copy artifacts') {
steps {
script {
copyArtifacts(
2023-06-28 23:20:52 +02:00
projectName: 'z-s487184-training/main',
2023-06-28 22:40:30 +02:00
selector: buildParameter('BUILD_SELECTOR'),
target: './'
)
copyArtifacts(
2023-06-28 23:20:52 +02:00
projectName: 'z-s487184-create-dataset',
2023-06-28 22:40:30 +02:00
selector: buildParameter('BUILD_SELECTOR'),
target: './'
)
}
}
}
stage('Save evaluation') {
steps {
script {
sh 'ls -l'
docker.image('docker-image').inside {
sh 'ls -l'
sh 'python3 ./evaluate.py'
archiveArtifacts 'plot.png'
archiveArtifacts 'results.csv'
}
}
}
}
}
}