convert a shell file

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

convert a shell file

inforedaster .

Hello


i have a Jenkins installed in Windows and i have a project where i have a lot of script file .sh i 

so must do dos2unix in commande Ligne for all the file to convert for windows forme to unix forme

i ask you if i can have a plugin or a windows script to convert all file in the Build Time

thanks

Reply | Threaded
Open this post in threaded view
|

Re: convert a shell file

Marek Gimza
Do you have a linux/unix machine?

If so, then either run an instance of Jenkins on that machine to run the shell scripts, OR setup the Linux/unix machine as a slave to run the job.

Alternatively, you could call dos2unix as a build-step to do the conversion before running your task(s).

I hpe that this helps,
...
Mgimza

On Fri, Dec 21, 2012 at 5:36 PM, El alaoui Mohamed Reda <[hidden email]> wrote:
u if i can have a plugin or a windows script to con

Reply | Threaded
Open this post in threaded view
|

Re: convert a shell file

inforedaster .
thanks for your answer but i have a problem we dont have a linux machine :(

2012/12/21 Marek Gimza <[hidden email]>
Do you have a linux/unix machine?

If so, then either run an instance of Jenkins on that machine to run the shell scripts, OR setup the Linux/unix machine as a slave to run the job.

Alternatively, you could call dos2unix as a build-step to do the conversion before running your task(s).

I hpe that this helps,
...
Mgimza


On Fri, Dec 21, 2012 at 5:36 PM, El alaoui Mohamed Reda <[hidden email]> wrote:
u if i can have a plugin or a windows script to con




--

Mohamed Reda, El alaoui