ium_z487175/Jenkinsfile-training

32 lines
754 B
Plaintext
Raw Normal View History

2023-06-07 20:00:19 +02:00
pipeline{
agent any
stages{
stage('Copy dataset'){
steps{
build job: 'z-s487175-create-dataset', propagate: true
sh "docker cp \$(docker ps -l -q):/app/dane ${env.WORKSPACE}"
}
}
stage('Train model'){
steps{
sh "docker run -v ${env.WORKSPACE}/dane:app/dane ium python3 /app/DL-model.py"
}
}
stage('Archive model'){
steps{
archiveArtifacts artifacts: 'model_with_data.pickle', fingerprint: true
}
}
}
parameters{
string{
name: 'EPOCHS',
description: 'Number of epochs',
defaultValue: '10',
}
}
}