ium_487187/JenkinsfileDL
Jakub Zaręba 254b155fb6 s
2023-05-10 23:54:43 +02:00

40 lines
1.0 KiB
Plaintext

pipeline {
agent any
environment {
SACRED_IGNORE_GIT = 'TRUE'
}
parameters {
string(name: 'EPOCHS', defaultValue: '10', description: 'Liczba Epok')
}
stages {
stage('Przygotowanie') {
steps {
sh 'pip install pandas tensorflow scikit-learn imbalanced-learn sacred pymongo mlflow'
}
}
stage('Pobierz dane') {
steps {
script {
copyArtifacts(projectName: 's487187-create-dataset', fingerprintArtifacts: true)
}
}
}
stage('Trenuj model') {
steps {
script {
sh 'mlflow run . -P epochs=$EPOCHS'
}
}
}
stage('Zarchiwizuj model') {
steps {
sh '''
mkdir -p model
cp -r mlruns/* model/
'''
archiveArtifacts artifacts: 'model/**', fingerprint: true
}
}
}
}