mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
Reverted setting build artifact to parent directory, deleting olds
It goes against the directory isolation in build environments, which shouldn't produce state outside of their own folder (e.g. in terms of TeamCity build artifacts). Removing existing files, to avoid double archiving on subsequent runs.
This commit is contained in:
parent
cceee896b6
commit
0318d35ac1
@ -149,7 +149,7 @@ Options:
|
||||
<if>
|
||||
<equals arg1="${archivetype}" arg2="tar.gz" casesensitive="false" trim="true"/>
|
||||
<then>
|
||||
<tar destfile="${basedir}/../${archivefilename}" compression="gzip">
|
||||
<tar destfile="${basedir}/${archivefilename}" compression="gzip">
|
||||
<fileset dir="${tmp}">
|
||||
<include name="**/**" />
|
||||
</fileset>
|
||||
@ -161,7 +161,7 @@ Options:
|
||||
<if>
|
||||
<equals arg1="${archivetype}" arg2="zip" casesensitive="false" trim="true"/>
|
||||
<then>
|
||||
<zip destfile="${basedir}/../${archivefilename}">
|
||||
<zip destfile="${basedir}/${archivefilename}">
|
||||
<fileset dir="${tmp}">
|
||||
<include name="**/**" />
|
||||
</fileset>
|
||||
@ -272,8 +272,10 @@ Options:
|
||||
</else>
|
||||
</if>
|
||||
|
||||
<delete file="${basedir}/${archivename}.${archivetype}" quiet="true" />
|
||||
|
||||
<phingCall target="archiveTask" />
|
||||
<echo msg="Created archive in: ${basedir}/${archivename}" />
|
||||
<echo msg="Created archive in: ${basedir}/${archivename}.${archivetype}" />
|
||||
|
||||
</target>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user