ium_487187/Jenkinsfile_DL

32 lines
877 B
Plaintext
Raw Normal View History

2023-05-10 15:11:42 +02:00
pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache'
}
}
parameters {
string(name: 'TRAIN_PARAMS', defaultValue: '', description: 'Parametry dla skryptu trenującego')
}
stages {
stage('Pobierz dane') {
steps {
script {
2023-05-10 15:12:25 +02:00
copyArtifacts(projectName: 's487187-create-dataset', filter: '*.csv', target: 'data', fingerprintArtifacts: true)
2023-05-10 15:11:42 +02:00
}
}
}
stage('Trenuj model') {
steps {
script {
sh 'python3 train.py ${params.TRAIN_PARAMS}'
}
}
}
stage('Zarchiwizuj model') {
steps {
archiveArtifacts artifacts: 'model.h5', fingerprint: true
}
}
}
}