x1/JenkinsfileEvaluate

46 lines
1.4 KiB
Plaintext
Raw 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'),
target: './MLEvaluate'
)
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'),
target: './MLEvaluate'
)
}
}
}
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'
sh 'python3 ./model_test.py'
archiveArtifacts 'plot.png'
archiveArtifacts 'result.csv'
}
}
}
}
}
}