Ticket #15 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 week ago

FTP upload task

Reported by: maxx.gass@gmail.com Assigned to: 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@ncode.nl> on 11/12/07 11:46:17.
FtpDeploy task

Change History

03/13/06 13:39:29 changed by mrook

  • milestone set to 2.3.0.

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

(in reply to: ↑ description ) 04/17/07 10:25:19 changed 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?

08/02/07 02:13:15 changed 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.

11/12/07 11:46:09 changed by jorrit@ncode.nl

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.

11/12/07 11:46:17 changed by Jorrit Schippers <jorrit@ncode.nl>

  • attachment FtpDeploy.php added.

FtpDeploy task

11/14/07 09:06:34 changed by Jorrit

Any comments on my code?

11/14/07 11:48:51 changed by hans

  • status changed from new to assigned.

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

12/15/07 11:08:00 changed 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.

12/15/07 15:46:50 changed by hans

  • milestone changed from 3.0 to 2.3.1.

Thanks for the submission. I'll add this.

01/21/08 14:41:22 changed by mrook

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

Patch committed in r340, thanks!

05/06/08 14:11:54 changed by dude

Yeah, thanks you

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


Add/Change #15 (FTP upload task)




Action