ium_444356/Jenkinsfile_train-sacred
Maciej Czajka a6e7769e8d
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good
update jenkinsfile_train-sacred
2022-05-11 17:55:32 +02:00

29 lines
664 B
Plaintext

pipeline {
agent {
docker {
image 'maciejczajka'
args '-v /mlruns:/mlruns'
}
}
parameters {
string(
defaultValue: '100',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Script'){
steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
archiveArtifacts artifacts: 'games_model.pkl'
archiveArtifacts artifacts: 'mlruns/**'
archiveArtifacts artifacts: 'my_model/**'
sh 'rm -r mlruns'
sh 'rm -r my_model'
}
}
}
}