fixed location of the qif repository

This commit is contained in:
Andrei Yankovich 2021-01-10 12:12:26 +03:00
parent dfb70bee63
commit a2f90e1e06
3 changed files with 10 additions and 2 deletions

View File

@ -101,3 +101,6 @@ class BaseModule:
else: else:
command.extend(['-j', '1']) command.extend(['-j', '1'])
return command return command
def defaultLocationOfQIFRepository(self):
return "/var/www/repo/"

View File

@ -240,13 +240,18 @@ class Make(BaseModule):
repo = str(props.getProperty('repository')) repo = str(props.getProperty('repository'))
return self.getNameProjectFromGitUrl(repo) return self.getNameProjectFromGitUrl(repo)
@util.renderer
def repoLocation(props):
return self.defaultLocationOfQIFRepository()
res += [steps.Trigger(schedulerNames=['repogen'], res += [steps.Trigger(schedulerNames=['repogen'],
doStepIf=lambda step: doStepIf=lambda step:
self.isRelease(step) and self.isRelease(step) and
self.isSupport(step), self.isSupport(step),
set_properties={"tempPackage": tempDirProp, set_properties={"tempPackage": tempDirProp,
"platform": platform, "platform": platform,
"projectName": projectName} "projectName": projectName,
"repoLocation": repoLocation}
)] )]
return res return res

View File

@ -107,6 +107,6 @@ class QIFRepogen (BaseModule):
util.StringParameter( util.StringParameter(
name='repoLocation', name='repoLocation',
label='repository location', label='repository location',
default="/var/www/repo/" default=defaultLocationOfQIFRepository()
), ),
] ]