ium_487187/JenkinsfileDL
Jakub Zaręba 3f421a765b t
2023-05-10 15:44:36 +02:00

32 lines
865 B
Plaintext

pipeline {
agent {
docker {
image 'python:3.11'
args '-v /root/.cache:/root/.cache'
}
}
parameters {
string(name: 'EPOCHS', defaultValue: '10', description: 'Liczba Epok')
}
stages {
stage('Pobierz dane') {
steps {
script {
copyArtifacts(projectName: 's487187-create-dataset', filter: '*.csv', target: 'Athletes_winter_games.csv', fingerprintArtifacts: true)
}
}
}
stage('Trenuj model') {
steps {
script {
sh 'python3 train.py ${params.EPOCHS}'
}
}
}
stage('Zarchiwizuj model') {
steps {
archiveArtifacts artifacts: 'model.h5', fingerprint: true
}
}
}
}