x1/JenkinsfileEvaluate

46 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-06-27 15:34:59 +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-27 15:37:40 +02:00
projectName: 'x1-training/main',
2023-06-27 15:34:59 +02:00
selector: buildParameter('BUILD_SELECTOR'),
2023-06-27 15:43:29 +02:00
target: './'
2023-06-27 15:34:59 +02:00
)
copyArtifacts(
2023-06-27 15:37:40 +02:00
projectName: 'x1-create-dataset',
2023-06-27 15:34:59 +02:00
selector: buildParameter('BUILD_SELECTOR'),
2023-06-27 15:43:29 +02:00
target: './'
2023-06-27 15:34:59 +02:00
)
}
}
}
2023-06-27 15:37:40 +02:00
stage('Save evaluation') {
2023-06-27 15:34:59 +02:00
steps {
script {
sh 'ls -l'
docker.image('docker-image').inside {
sh 'ls -l'
2023-06-27 15:41:20 +02:00
sh 'python3 ./evaluate.py'
2023-06-27 15:34:59 +02:00
archiveArtifacts 'plot.png'
2023-06-27 15:47:03 +02:00
archiveArtifacts 'results.csv'
2023-06-27 15:34:59 +02:00
}
}
}
}
}
}