Ticket #15 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 months ago

FTP upload task

Reported by: maxx.gass@… Owned by: hans
Priority: major Milestone: 2.3.1
Component: cruisecontrol-builder-plugin Version: 2.2.0RC1
Keywords: Cc:

Description

Would be very nice for Continous Integration

Attachments

FtpDeploy.php (3.9 kB) - added by Jorrit Schippers <jorrit@…> 20 months ago.
FtpDeploy task
ajaxshab.zip (107.2 kB) - added by anonymous 7 months ago.

Change History

  Changed 3 years ago by mrook

  • milestone set to 2.3.0

Good idea! I'm moving this to the 2.3.0 milestone.

in reply to: ↑ description   Changed 2 years ago by anonymous

Replying to maxx.gass@gmail.com:

Would be very nice for Continous Integration

Is there a wget task as well, for fetching stuff from the net?

  Changed 2 years ago by hans

  • owner set to hans
  • component set to cruisecontrol-builder-plugin
  • milestone changed from 2.3.0 to 3.0

This would be useful; we're taking task submissions! ;) I'll move this to 3.0, but anyone can feel free to provide one earlier.

  Changed 20 months ago by jorrit@…

I have made something that might be what the submitter intended. It's not done, but it gives an idea of what it should do. I intend to use it for remote deployment. At this moment it is broken because of PEAR bug #7270.

Example XML:

<project name="deploytest" default="deploy" basedir=".">
	<taskdef name="ftpdeploy" classname="phing.tasks.FtpDeploy"/>
	
    <target name="build">
		....
	</target>
	
	<target name="deploy" depends="build">
		<ftpdeploy host="host" port="21" username="user" password="password" dir="public_html" mode="ascii" clearfirst="true">
			<fileset dir=".">
				<include name="**"/>
				<exclude name="phing"/>
				<exclude name="build.xml"/>
				<exclude name="images/**.png"/>
				<exclude name="images/**.gif"/>
				<exclude name="images/**.jpg"/>
			</fileset>
		</ftpdeploy>
		<ftpdeploy host="host" port="21" username="user" password="password" dir="public_html" mode="binary">
			<fileset dir=".">
				<include name="images/**.gif"/>
				<include name="images/**.jpg"/>
			</fileset>
		</ftpdeploy>
	</target>
</project>

What do you think of it? Perhaps it can be of use, otherwise I will just use it for myself.

Changed 20 months ago by Jorrit Schippers <jorrit@…>

FtpDeploy task

  Changed 20 months ago by Jorrit

Any comments on my code?

  Changed 20 months ago by hans

  • status changed from new to assigned

I haven't had a chance to look at it yet, but I promise I will.

  Changed 19 months ago by Jorrit

I hate to bother you again, but I'd like to know what you think about it. The bug in Net_FTP that prevented this task from working properly has been fixed.

  Changed 19 months ago by hans

  • milestone changed from 3.0 to 2.3.1

Thanks for the submission. I'll add this.

  Changed 18 months ago by mrook

  • status changed from assigned to closed
  • resolution set to fixed

Patch committed in r340, thanks!

  Changed 14 months ago by dude

Yeah, thanks you

Exactly what I want to code, but it's great if I'd not ... ;-)

  Changed 9 months ago by john@…

is anyone working on an addition to ftpdeploy to "sync" rather than just override ALL files?

this does not make sense on a large system with 1000+ files, of which only say 14 change regularly (others are utils, libraries, etc. like YUI)

Changed 7 months ago by anonymous

Add/Change #15 (FTP upload task)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.