ium_487187/Jenkinsfile_DL
Jakub Zaręba e854e7076d fix: JS_DL
2023-05-10 15:12:25 +02:00

32 lines
877 B
Plaintext

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 {
copyArtifacts(projectName: 's487187-create-dataset', filter: '*.csv', target: 'data', fingerprintArtifacts: true)
}
}
}
stage('Trenuj model') {
steps {
script {
sh 'python3 train.py ${params.TRAIN_PARAMS}'
}
}
}
stage('Zarchiwizuj model') {
steps {
archiveArtifacts artifacts: 'model.h5', fingerprint: true
}
}
}
}