Modify

Ticket #15 (closed enhancement: fixed)

Opened 4 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 Download (3.9 KB) - added by Jorrit Schippers <jorrit@…> 3 years ago.
FtpDeploy task

Change History

comment:1 Changed 4 years ago by mrook

  • Milestone set to 2.3.0

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

comment:3 in reply to: ↑ description Changed 3 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?

comment:4 Changed 3 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.

comment:5 Changed 3 years 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 3 years ago by Jorrit Schippers <jorrit@…>

FtpDeploy task

comment:6 Changed 3 years ago by Jorrit

Any comments on my code?

comment:7 Changed 3 years 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.

comment:8 Changed 3 years 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.

comment:9 Changed 3 years ago by hans

  • Milestone changed from 3.0 to 2.3.1

Thanks for the submission. I'll add this.

comment:10 Changed 3 years ago by mrook

  • Status changed from assigned to closed
  • Resolution set to fixed

Patch committed in r340, thanks!

comment:11 Changed 2 years ago by dude

Yeah, thanks you

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

comment:12 Changed 2 years 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)

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.