update jenkinsfile_train-sacred, dllib-sacred.py
This commit is contained in:
parent
9399d93b51
commit
8341232e0e
@ -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():
|
||||||
|
@ -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/'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user