update jenkinsfile_train-sacred, dllib-sacred.py
Some checks failed
s444356-training/pipeline/head There was a failure building this commit
s444356-evaluation/pipeline/head This commit looks good

This commit is contained in:
Maciej Czajka 2022-05-09 10:28:22 +02:00
parent 9399d93b51
commit 8341232e0e
2 changed files with 4 additions and 6 deletions

View File

@ -18,7 +18,7 @@ from sacred.observers import MongoObserver
ex = Experiment() ex = Experiment()
ex.observers.append(FileStorageObserver('my_res')) ex.observers.append(FileStorageObserver('my_res'))
#ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred')) ex.observers.append(MongoObserver(url='mongodb://admin:IUM_2021@172.17.0.1:27017', db_name='sacred'))
@ex.config @ex.config
def my_config(): def my_config():

View File

@ -16,13 +16,11 @@ pipeline {
stage('Script'){ stage('Script'){
steps { steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset' copyArtifacts filter: '*', projectName: 's444356-create-dataset'
sh 'rm -r my_res'
sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"' sh 'python Biblioteka_DL/dllib-sacred.py with "epochs=$EPOCHS"'
sh 'ls my_res' sh 'ls my_res'
sh 'cp my_res/_sources/dllib* source_code.py' sh 'cp -r my_res res
sh 'cp my_res/2/config.json configuration.json' archiveArtifacts artifacts: 'games_model.pkl, res'
sh 'cp my_res/2/info.json param.json'
sh 'cp my_res/2/games_model.pkl model.pkl'
archiveArtifacts artifacts: 'games_model.pkl, source_code.py, configuration.json, param.json, model.pkl'
sh 'rm -r my_res' sh 'rm -r my_res'
build job: 's444356-evaluation/master/' build job: 's444356-evaluation/master/'
} }