ium_z487179/MLEvaluate/Jenkinsfile
2023-06-13 19:53:46 +02:00

43 lines
1.2 KiB
Groovy

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: 'z-s487179-training',
selector: buildParameter('BUILD_SELECTOR'),
target: './MLEvaluate'
)
}
}
}
stage('Run training and save model') {
steps {
script {
sh 'ls -l'
docker.image('docker-image').inside {
dir('./MLEvaluate') {
sh 'ls -l'
sh 'python3 ./model_test.py'
archiveArtifacts 'plot.png'
archiveArtifacts 'metrics.csv'
}
}
}
}
}
}
}