fixed pytest
This commit is contained in:
parent
50a722794c
commit
6ede2528c2
1 changed files with 2 additions and 3 deletions
|
@ -40,7 +40,8 @@ class DevopsBuild:
|
||||||
self.project = project
|
self.project = project
|
||||||
self.file_api = FileApi()
|
self.file_api = FileApi()
|
||||||
self.repo = ProjectRepository()
|
self.repo = ProjectRepository()
|
||||||
if not devops and config:
|
if not devops:
|
||||||
|
if not config: raise Exception("Build parameters could not be set!")
|
||||||
devops = Devops(
|
devops = Devops(
|
||||||
stage=config["stage"],
|
stage=config["stage"],
|
||||||
project_root_path=config["project_root_path"],
|
project_root_path=config["project_root_path"],
|
||||||
|
@ -48,8 +49,6 @@ class DevopsBuild:
|
||||||
name=project.name,
|
name=project.name,
|
||||||
build_dir_name=config["build_dir_name"],
|
build_dir_name=config["build_dir_name"],
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
raise Exception("Build parameters could not be set!")
|
|
||||||
|
|
||||||
self.repo.set_devops(self.project, devops)
|
self.repo.set_devops(self.project, devops)
|
||||||
self.repo.set_build(self.project, self)
|
self.repo.set_build(self.project, self)
|
||||||
|
|
Loading…
Reference in a new issue