[maemo-developers] Autobuilder: building svn tags from garage

From: Ed Bartosh bartosh at gmail.com
Date: Wed Aug 26 22:37:36 EEST 2009
2009/8/26 Ed Bartosh <bartosh at gmail.com>:
> 2009/8/26 Niels Breet <niels at maemo.org>:
>> On Wed, August 26, 2009 20:33, Ed Bartosh wrote:
>>> 2009/8/26 Marius Vollmer <marius.vollmer at nokia.com>:
>>>
>>>> ext Ed Bartosh <bartosh at gmail.com> writes:
>>>>
>>>
>>> What do you think about using pre_upload_command and
>>> post_upload_command features of dput? If we allow to create directory using
>>> pre_upload_command, uploading multiple sources into it and put some flag
>>> for triggering the build in post_upload_command would it solve the
>>> problem?
>>
>> Don't these commands run locally on the uploader's machine as opposed to
>> the server? Or am I reading the dput code wrong :)
>>
>> If they run on the server, I think we can work with that.
>
> Well, even if they run locally nobody prevents us to use 'ssh
> user at host' prefix for them :)
> If it's possible to allow mkdir and touch under the builder incoming
> directories it would be enough.
> It can be something like this:
> [fremantle-extras-builder]
> login = user
> fqdn = garage.maemo.org
> method = scp
> hash = md5
> allow_unsigned_uploads = 1
> incoming = /var/www/extras-devel/incoming-builder/test-build/
> pre_upload_command = ssh %(login)s@%(fqdn)s mkdir %(incoming)/test-build/
> post_upload_command = ssh %(login)s@%(fqdn)s touch
> (incoming)/test-build/uploaded
>
This trick almost worked for me:
pre_upload_command = ssh %(login)s@%(fqdn)s "test -d %(incoming)s ||
mkdir %(incoming)s"
post_upload_command = ssh %(login)s@%(fqdn)s touch %(incoming)s/uploaded

Unfortunately dput calls post_upload_command after each upload, which
is not what we want.

-- 
BR,
Ed
More information about the maemo-developers mailing list