ium_444356/Jenkinsfile_train-sacred

30 lines
678 B
Plaintext
Raw Normal View History

pipeline {
agent {
docker {
image 'maciejczajka'
2022-05-11 17:00:20 +02:00
args '-v mlruns/13/4a4cd6f115d245c881a33a9f61e4d9d6'
}
}
parameters {
string(
defaultValue: '100',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Script'){
steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
2022-05-11 15:12:35 +02:00
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
archiveArtifacts artifacts: 'games_model.pkl'
sh 'ls -al'
sh 'cat MLProject'
sh 'ls mlruns'
archiveArtifacts artifacts: 'mlruns/**'
2022-05-11 15:35:45 +02:00
sh 'rm -r mlruns'
}
}
}
}