How to set automatic download dependencies to JMeter slave machines from JMeter Maven Plugin - jmeter

I was using <jmeterExtensions> tag to specify the dependency plugins although the dependencies are not getting downloaded for slave machines where It is required to manually download them in slave machine. Is there any solution to download dependencies to slave machines as well.

This is not handled by jmeter-maven-plugin and I don't think it can be implemented there.
So the option would be to run a kind of warmup on every machine using remote ssh and launching maven on it.
You could try to automate this using Ansible.
See this blog for more details on using the plugin.

Related

Jenkins pipeline and Chef for Continues Deployment

I'm working on scenario, Jenkins is my CI tools and Maven is my build tool, ere I will be configuring the Jenkins pipeline through Jenkins file, but after the build steps are done, I want to deploy and install the artifacts (i.e .Jar files or some other) using chef(cookbooks-recipies) on the nodes, I was confused how can I achieve this process ! please help me
Thanks.
This question is way too vague to get a useful answer, and even if you make it more specific it's a very very broad question. I've got a write-up of my most recent build of this at https://coderanger.net/jenkins/, feel free to crib from it in part or in full.
Jenkins pipeline setup for the continues integration and Deployment, My only confusion was how Jenkins and chef are going to communicate in this process, after the continue integration, I want the chef to take over and install the Jar packages and deploy them on the several nodes. Here maven is my build tool. In Jenkins pipeline I can setup until the build is done , is there any thing that I can do in the Post section of the pipeline for the chef communication for deployment or it has to be done from the chef/cookbook/recipes/name.rb, is there any Jenkins plugin that make it possible !
Check chef plugin that lets you
run chef-client on remote host.
In Jenkins, deploy to a container plugin will help you to deploy your code to any of the workstation and use knife to upload into chef server and get deployed to all the nodes

how to manually install maven plugins, dependencies

i have installed Apache Maven 2.2.1, but this server doesn't have internet connection. So maven couldn't install basic plugins. Can i do it manually, could someone tell my how to do it, please.
I would suggest to do the needed build on a machine which has internet access and transfer the local maven repository later to the target machine.
Or better solution using a repository manager where this machine has access to which solves the problem completely.
http://mvnrepository.com/
Go to the MvnRepository, search for the one you need and download the binary. Store it in the appropriate local maven repository directories to be pulled in from there or manually add a reference to wherever you store the .jar

Can a Jenkins Maven build be executed on separate servers?

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

Issue on Running JUnit Selenium tests in Jenkins

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

Automatic features provision on Fuse ESB/Servicemix with Maven

Is there any way to provision/deploy features to Fuse ESB/Servicemix automaticaly though Maven, like cargo for Tomcat? Using ant+ssh is not an option.
I'm currently finalizing a client wrapped in a maven plugin that will do just that, but instead of the fusesource approach of using the hot deployment folder I connect directly to the remote karaf console and execute the commands required to (un)install features.
The auto deploy is part of automated regression tests executed by Jenkins through a set of SoapUI test scripts.
Basically I use apache SSHD to connect to karaf (see an example here: https://cwiki.apache.org/KARAF/63-programmatically-connect-to-the-console.html) and some custom code to execute the commands and parse the result.

Resources