I have an ubuntu jenkins master and a windows jenkins slave.
I have one Build with Grails command, and I choose
GRAILS_137, which on the master is set to /opt/tools/grails-1.3.7/
I don't see anywhere to configure the slave to set the grails location. How do I do this? When this build runs on windows, it does this:
cmd.exe /C /opt/Tools/grails-1.3.7/bin/grails
How do I configure the grails location for the windows slave jenkins? Trying to configure Node options of the slave from the master only lets me select JDK, Git, and Gradle locations.
The grails plugin has no support for slaves.
Related
I am trying to setup a maven project in jenkins via freestyle option. I have set manage jenkins->configure system to set maven downlaod automatic. But, when I run the project on the slave where there is no maven isntall, it does not automatically download maven on slave and install as i expected. am i thinking something wrong here?
This is what I have done :
1. Manage jenkins-> configure system-> maven install automatically
2. create a new job and select freestyle project
3. in the build step:
scp pom file from master to slave machine
run maven from slave using this pom file
Here there is no maven installed in slave. But, i though because of step 1, it will automatically download maven on slave and install before running the build .
In your build step you need to "Invoke top-level Maven targets", select the Maven version you configured and trigger the job again.
if the installation you added is by extracting *zip and not from Apache you have a "Label" field that is co-related to the Label of the node you're running on. I always use Tools label on my slaves, so just make sure you have this label configured in the node itself.
In Jenkins's "Configure System", there is "Maven Configuration" where you can set the local installation of Maven. What's this for?
local installation means the local Maven installation on the Jenkins server, right? But most of time we build in Slaves.
Jirong
You can also use the Jenkins master only configuration, and it is an option for this situation :)
It works also for slaves, if path is identical as in master.
To configure different path on slaves go to Manage Jenkins -> Manage Nodes -> node name -> Configure.
Specifically, have the Jenkins instance running on a Linux server execute a Maven build on a Windows server
Yep, you can have a master-slave relation with another box: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds
If you only want launch a maven build there without setting up a slave, you can install the ssh plugin, configure ssh access on the Windows box, and then remotely execute the maven build
I'm beginner by using Selenium and Jenkins. So here is my problem.
I got on a Linux VM, jenkins which is installed and got plugins : JUnit attachment and filesystem_SCM.
I got in a folder of that VM the java files containing my selenium tests.
I would to execute from jenkins those scripts executing on a windows machine where Selenium RC is turning on.
How could I do that ? I've seen Selenium grid plugin or just tried to create a job with a shell command containing mvn instruction but I don't really understand what to do ? Does someone could help me ?
What I believe you'll want to do is to configure a Windows Machine (VMs are terrific for this) as a Selenium Slave machine and then have your tests executed there. In this scenario, your Jenkins Master (the linux VM) would trigger the slave (the windows VM) to execute the build.
In Jenkins you can do this by having the Slave execute your build that runs the tests via JUnit. You can either configure executing the tests as a separate build in Jenkins, or simply as a build step in your main build.
Here's some relevant Links:
Jenkins Distributed Builds
Setting up Master and Slave Machines in Jenkins
I am experiencing an issue running Jenkins job using slaves.
The job is a Maven job, that updates code from svn and then build and run tests, this project runs well in both master and slave as a standalone project.
The issue is when Master launch this project in the slave, in that case I see:
...
Svn Update OK
Error: Maven Home c:\maven doesn't exist
Both servers have maven on that dir, and both servers are able to run the build without master/slave setup.
Finally,I solve this problem.
The reason of "Error: Maven Home c:\maven doesn´t exist" is that your slave node use the master`s maven setting . If the slave want to use its own setting , it has to override that.
Override the settings as follows:
System Management -> Node Management -> your slave setting -> Node Properties -> check the Tools Locations -> Add , then set the slave maven option,alias select "maven",directory write with the slave maven directory.
you can try it.
You need to invoke your top-level maven targets and set the goals and path to pom, for instance:
goals: clean install
Pom: /home/merbel/sth/pom.xml
Finally i solve this issue, it was very simple just we need to check the global configuration that in maven part we have given correct path or not as a maven home.
for example: in global tools configuration..>come down in maven home part
maven Name: M2_HOME
MAVEN_HOME: /opt/maven
like this we need to give correct path where maven was untar so after checking this try once.....
in most cases it works succesfully.....