mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-27 14:24:32 +00:00
fix propery validation
This commit is contained in:
parent
4549612bdd
commit
a484bfc68e
@ -34,10 +34,12 @@ class Make(BaseModule):
|
|||||||
return step.getProperty('deploy')
|
return step.getProperty('deploy')
|
||||||
|
|
||||||
def isCopyArtefact(self, step):
|
def isCopyArtefact(self, step):
|
||||||
return len(str(step.getProperty('copyCustomArtifact'))) > 0
|
val = step.getProperty('copyCustomArtifact')
|
||||||
|
return type(val) == str and len(val) > 0
|
||||||
|
|
||||||
def isCopyCustomFolder(self, step):
|
def isCopyCustomFolder(self, step):
|
||||||
return len(str(step.getProperty('copyCustomFolder'))) > 0
|
val = step.getProperty('copyCustomFolder')
|
||||||
|
return type(val) == str and len(val) > 0
|
||||||
|
|
||||||
def isRelease(self, step):
|
def isRelease(self, step):
|
||||||
return step.getProperty('release') and step.getProperty('stopOnErrors')
|
return step.getProperty('release') and step.getProperty('stopOnErrors')
|
||||||
@ -338,8 +340,8 @@ class Make(BaseModule):
|
|||||||
masterdest=self.getWraper(self.destDir),
|
masterdest=self.getWraper(self.destDir),
|
||||||
url=self.getWraper(self.destDirUrl),
|
url=self.getWraper(self.destDirUrl),
|
||||||
doStepIf=self.getWraper(self.isCopyCustomFolder),
|
doStepIf=self.getWraper(self.isCopyCustomFolder),
|
||||||
name='copy extra artefact file',
|
name='copy extra artefact files',
|
||||||
description='copy extra artefact file',
|
description='copy extra artefact files (DirectoryUpload)',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -352,7 +354,7 @@ class Make(BaseModule):
|
|||||||
url=self.getWraper(self.destDirUrl),
|
url=self.getWraper(self.destDirUrl),
|
||||||
doStepIf=self.getWraper(self.isCopyArtefact),
|
doStepIf=self.getWraper(self.isCopyArtefact),
|
||||||
name='copy custom artifact file',
|
name='copy custom artifact file',
|
||||||
description='copy custom artifact file',
|
description='copy custom artifact file (FileUpload)',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user