Archiving

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Archiving

myusuf3
Is it possible to archive directories, and there structure in hudson. If so, how?
Reply | Threaded
Open this post in threaded view
|

Re: Archiving

Sami Tikka
No. But your build can zip/tar/rar the directory and archive the
resulting .zip/.tar/.rar file.

-- Sami

2010/7/6 myusuf3 <[hidden email]>:

>
> Is it possible to archive directories, and there structure in hudson. If so,
> how?
> --
> View this message in context: http://hudson.361315.n4.nabble.com/Archiving-tp2280027p2280027.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Archiving

Paul Weiss-2
You can't?  But I do it all the time:  specify something like this:

        subdir/**

and everything gets archived.

-P

On Wed, 07 Jul 2010 04:34:54 -0400, Sami Tikka <[hidden email]> wrote:

> No. But your build can zip/tar/rar the directory and archive the
> resulting .zip/.tar/.rar file.
>
> -- Sami
>
> 2010/7/6 myusuf3 <[hidden email]>:
>>
>> Is it possible to archive directories, and there structure in hudson.  
>> If so,
>> how?
>> --
>> View this message in context:  
>> http://hudson.361315.n4.nabble.com/Archiving-tp2280027p2280027.html
>> Sent from the Hudson users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Archiving

myusuf3
In reply to this post by Sami Tikka
I want to run a hudson slave on a windows machine with a master running on a linux box. 

Can you be explicit as possible please. :)

On Wed, Jul 7, 2010 at 4:35 AM, Sami Tikka [via Hudson] <[hidden email]> wrote:
No. But your build can zip/tar/rar the directory and archive the
resulting .zip/.tar/.rar file.

-- Sami

2010/7/6 myusuf3 <[hidden email]>:

>
> Is it possible to archive directories, and there structure in hudson. If so,
> how?
> --
> View this message in context: http://hudson.361315.n4.nabble.com/Archiving-tp2280027p2280027.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]








--
Thanks,
Mahdi Yusuf
Reply | Threaded
Open this post in threaded view
|

Re: Archiving

Sami Tikka
Sorry, I can only explain how to do it on Linux. You will have to
translate it to windows yourself.

Go to job's Configuration -> write into the Build step box:

mkdir build_result/a
mkdir build_result/a/b
mkdir build_result/a/b/c
echo "HELLO WORLD" > build_result/a/b/c/hello.txt
zip -r  build_result.zip build_result

Under Post-build actions, check the box "Archive the artifacts". Into
"Files to archive" box write: build_result.zip

Click Save.

Run the build.

Find build artifacts. build_results.zip should be presented on
Hudson's web page. If you download build_results.zip and unzip it, you
should get the original directory structure.

-- Sami

2010/7/21 myusuf3 <[hidden email]>:

> I want to run a hudson slave on a windows machine with a master running on a
> linux box.
> Can you be explicit as possible please. :)
>
> On Wed, Jul 7, 2010 at 4:35 AM, Sami Tikka [via Hudson] <[hidden email]>
> wrote:
>>
>> No. But your build can zip/tar/rar the directory and archive the
>> resulting .zip/.tar/.rar file.
>>
>> -- Sami
>>
>> 2010/7/6 myusuf3 <[hidden email]>:
>> >
>> > Is it possible to archive directories, and there structure in hudson. If
>> > so,
>> > how?
>> > --
>> > View this message in context:
>> > http://hudson.361315.n4.nabble.com/Archiving-tp2280027p2280027.html
>> > Sent from the Hudson users mailing list archive at Nabble.com.
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]
>> > For additional commands, e-mail: [hidden email]
>> >
>> >
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>> ________________________________
>> View message @
>> http://hudson.361315.n4.nabble.com/Archiving-tp2280027p2280617.html
>> To unsubscribe from Archiving, click here.
>
>
>
> --
> Thanks,
> Mahdi Yusuf
>
> ________________________________
> View this message in context: Re: Archiving
> Sent from the Hudson users mailing list archive at Nabble.com.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Archiving

Francois Cottet
Sami Tikka wrote
mkdir build_result/a
mkdir build_result/a/b
mkdir build_result/a/b/c
In Linux:
mkdir -p build_result/a/b/c
A single command will do ;-)

In windows:
mkdir build_result\a\b\c
should be working

The other lines look good in both environments.

Francois