Tag: jenkins

spinning up multiple jenkins docker slaves for a single job

I am attempting to use this plugin to have docker slaves in jenkins https://wiki.jenkins-ci.org/display/JENKINS/Docker+Slaves+Plugin However when I do I just get an unhelpful error: Started by user test_admin FATAL: null xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotExecutorProvisioningException at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.provisionFailed(OneShotSlave.java:146) at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.provision(OneShotSlave.java:130) at xyz.quoidneufdocker.jenkins.dockerslaves.api.OneShotSlave.createLauncher(OneShotSlave.java:155) at xyz.quoidneufdocker.jenkins.dockerslaves.DockerSlave.createLauncher(DockerSlave.java:90) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:561) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE I am […]

Use docker-compose with docker swarm

I’m using docker 1.12.1 I have an easy docker-compose script. version: ‘2’ services: jenkins-slave: build: ./slave image: jenkins-slave:1.0 restart: always ports: – “22” environment: – “constraint:NODE==master1” jenkins-master: image: jenkins:2.7.1 container_name: jenkins-master restart: always ports: – “8080:8080” – “50000” environment: – “constraint:NODE==node1” I run this script with docker-compose -p jenkins up -d. This Creates my 2 […]

Jenkins build inside a docker container with generated reports

I am new to Jenkins and Docker and even after some researches, I do not find the way to do these things. I want to : Execute pytest and python-coverage on my project inside a docker container. This should generate test and coverage reports Access the generated reports and read them with some Jenkins’plugin. When […]

Test Docker cluster in Jenkins

I have some difficulties to configure Jenkins to run test on a dockerized application. First here is my set up: the project is on bitbucket and I have a docker-compose that run my application which is composed of 3 three conmtainers for now (one for mongo, one for redis, one for my node app). The […]

docker: command not found ( mac mini ) only happens in jenkins shell step but work from command prompt

I’m facing this weird problem , struggling to solve since almost couple of days. Working: On mac mini command prompt , I switch to jenkins user and can run docker command without any problem. Not Working: but when I run a jenkins job , inside shell command step docker is not recognized. I’m getting error […]

Jenkins on Docker – Persist data

I have a docker container with a jenkins installation. In order to persist the jenkins jobs, etc i have attached a disk and told jenkins to use it. No problem so far. Now i have ssh into the machine to install the dotnet core cli. I have installed dotnet on the attached disk. After that […]

Cannot install inside docker container

I’m quite new at docker, but I’m facing a problem I have no idea how to solve it. I have a jenkins (docker) image running and everything was fine. A few days ago I created a job so I can run my nodejs tests every time a pull request is made. one of the job’s […]

Why Jenkins not stored data?

I try to configure Jenkins at Unubtu 16.04: docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins Then, i see at logs: Attempting to dynamic load /var/jenkins_home/plugins/workflow-aggregator.jpi Started initialization Listed all plugins Prepared all plugins Started all plugins Augmented all extensions Loaded all jobs Completed initialization Plugin workflow-aggregator:2.3 dynamically installed But, at /var/jenkins_home i cound […]

Simple pipeline script for jenkins and docker

I’m trying to create a simple pipeline script for jenkins that would build the application docker container and run a simple test in it. node(‘swarm’) { // My project sources include both build.xml and a Dockerfile to run it in. git credentialsId: ‘jenkins-private-key’, url: ‘git@github.com:myrepo/myapp.git’ try { stage ‘Build Docker’ def myEnv = docker.build ‘repo_folder/myapp:latest’ […]

Docker with both Jar and Gradle executions in it for jenkins

I currently have the following docker file FROM openjdk:8 EXPOSE 8080 WORKDIR /usr/bin/app ENTRYPOINT [“java”, “-jar”] which I build locally and run as docker run -d -P -v $(pwd):/usr/bin/app/ jachno/jarrunner /usr/bin/app/build/libs/com.onboarding-service-0.0.1.jar so basically the docker container has the local volume mapped to it and the name of a JAR that I want to run. this […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.