Which environment are you targeting? (I guess you are targeting Linux with the gcc compiler).
The beauty of Jenkins is that a single installation can run on multiple hosts. That’s what slave nodes are for. Rather than cross-compiling, just put together a Linux machine with GCC, and build your Linux binaries there. Here’s what you do.
First off, I’m assuming that you have a job like “Build windows binary”. Configure that job, and check the “Restrict where this project can be run” box so that it runs on “master”. This forces it to run on the Jenkins server itself; since your Jenkins server runs in Windows, this forces this job to run on a Windows machine.
In your Linux compiler box, create an account for Jenkins (maybe name it ‘jenkins’). In its home directory, make a directory called “linux1”.
Go to Jenkins->Manage Jenkins->Manage Nodes->New Node. Create a new “dumb slave” node called “linux1”.
Set up “linux1” to use the launch method of “Launch slave agents on Unix machines via SSH”. Give it the credentials to log in to your Linux compiler box. as a non-root user with access to the compiler. Set the Remote FS to the directory you set up (likely /home/jenkins/linux1). Give it a label of “linux”. After configuring it, make sure that it launches.
If you go to the main Jenkins page, you will now see “linux1” on the left, under the build queue.
Create a new job, called “Build Linux binary”, as a copy of the “Build windows binary” job. Change the “Restrict where this project can be run” to run on label “linux”. Replace all “Execute Windows batch command” steps with the appropriate “Execute shell” steps—while all new steps are created at the end of the list, you can drag steps into place by dragging the little 4x4 grid at the top left of a given step. Make whatever other changes are necessary to make this job appropriate to your Linux machine.
With all this set up, your new job will run on the Linux host you set up, and you can still see everything from the Jenkins server.
--Rob
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/39ed8162-8990-42a5-8ef5-3fefa5f412ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Click here to report this email as spam.
The beauty of Jenkins is that a single installation can run on multiple hosts. That’s what slave nodes are for. Rather than cross-compiling, just put together a Linux machine with GCC, and build your Linux binaries there. Here’s what you do.
First off, I’m assuming that you have a job like “Build windows binary”. Configure that job, and check the “Restrict where this project can be run” box so that it runs on “master”. This forces it to run on the Jenkins server itself; since your Jenkins server runs in Windows, this forces this job to run on a Windows machine.