x1/JenkinsfileEvaluate
wojciechbatruszewicz a719c09f95 evaluate
2023-06-27 15:41:20 +02:00

46 lines
1.4 KiB
Plaintext

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(
projectName: 'x1-training/main',
selector: buildParameter('BUILD_SELECTOR'),
target: './MLEvaluate'
)
copyArtifacts(
projectName: 'x1-create-dataset',
selector: buildParameter('BUILD_SELECTOR'),
target: './MLEvaluate'
)
}
}
}
stage('Save evaluation') {
steps {
script {
sh 'ls -l'
docker.image('docker-image').inside {
sh 'ls -l'
sh 'python3 ./evaluate.py'
archiveArtifacts 'plot.png'
archiveArtifacts 'result.csv'
}
}
}
}
}
}