ium_444356/Jenkinsfile_train-sacred
Maciej Czajka eeedb72573
Some checks failed
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head There was a failure building this commit
update jenkinsfile_train-sacred
2022-05-11 17:29:03 +02:00

30 lines
693 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'
sh 'ls -al'
sh 'cat MLProject'
sh 'ls Biblioteka_DL/mlruns'
archiveArtifacts artifacts: 'Biblioteka_DL/mlruns/**'
sh 'rm -r Biblioteka_DL/mlruns'
}
}
}
}