mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-05-02 00:09:37 +00:00
fix copy artefacts
This commit is contained in:
parent
a484bfc68e
commit
4a829b5b0f
@ -100,6 +100,13 @@ class Make(BaseModule):
|
|||||||
def destDir(self, props):
|
def destDir(self, props):
|
||||||
return '/var/www/builds/' + self.destDirPrivate(props)
|
return '/var/www/builds/' + self.destDirPrivate(props)
|
||||||
|
|
||||||
|
def destDirCustoArtefactFile(self, props):
|
||||||
|
|
||||||
|
if self.isCopyArtefact(props):
|
||||||
|
return self.destDir(props) + "/" + os.path.basename(props.getProperty('copyCustomArtifact'))
|
||||||
|
|
||||||
|
return ""
|
||||||
|
|
||||||
def tempDir(self, props):
|
def tempDir(self, props):
|
||||||
self.tempRepoDir = self.home + '/rTemp/' + self.tempDirPrivate(props)
|
self.tempRepoDir = self.home + '/rTemp/' + self.tempDirPrivate(props)
|
||||||
return self.tempRepoDir
|
return self.tempRepoDir
|
||||||
@ -348,9 +355,7 @@ class Make(BaseModule):
|
|||||||
factory.addStep(
|
factory.addStep(
|
||||||
steps.FileUpload(
|
steps.FileUpload(
|
||||||
workersrc=util.Interpolate('%(prop:copyCustomArtifact)s'),
|
workersrc=util.Interpolate('%(prop:copyCustomArtifact)s'),
|
||||||
masterdest=self.getWraper(lambda step:
|
masterdest=self.getWraper(self.destDirCustoArtefactFile),
|
||||||
self.destDir(step) + "/" + os.path.basename(step.getProperty('copyCustomArtifact'))
|
|
||||||
),
|
|
||||||
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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user