Running Jmeter test in Docker Container using Jenkin - Docker plugin

102 views
Skip to first unread message

Prasenjit Dutta

unread,
Nov 23, 2016, 7:36:33 AM11/23/16
to Jenkins Users
Hi All,

I am trying to implement CI for one of the Project:

Ask is using Jenkin's docker plugin, create an image, run the container, inside the container run jmeter test and finally once test completed after copying result, tear down the container.

What I have done till now:

1. created a docker cloud where the jenkin and Docker connectivity has been established
2. Created a docker template with the image name
3. Used build/publish docker container to build the image from the docker file
4. Used Start/Stop docker container to spin the container

Output: 
1. Images is getting created
2. But it is failed to locate the image and spin the container, getting the error as follows:
Pulling image jenkins-stc
null:Pulling repository docker.io/library/jenkins-stcERROR: Build step failed with exception
com.github.dockerjava.api.DockerClientException: Could not pull image: Error: image library/jenkins-stc not found

could anyone please suggest what i am missing to mention or any other plugin need to be used.


NOTE: I am able to complete all the above mentioned tasks with the Shell commands, but wanted to use Docker plugin to accomplish the requirement.

Thanks,
Prasenjit
Reply all
Reply to author
Forward
0 new messages