Tag: jenkins

Jenkins running in Docker on AWS EC2 can't retrieve http URLs, only https

I’m trying to set up Jenkins inside a Docker container on an AWS EC2 instance. I have had some success – Jenkins is running, and I can get to it, but there’s a problem. Whenever Jenkins tries to access a http URL to download, for example, a plugin, it gets a 404 reply. I’ve bashed […]

Can't add a shell build step with docker on containerized Jenkins

Host is a debian 8.4 server Jenkins is containerized and launched with docker run -d –name myjenkins -p 9090:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -v /var/jenkins_home:/var/jenkins_home –restart=”always” myjenk from the dockerfile FROM jenkins:latest USER root RUN apt-get update \ && apt-get install -y sudo \ && rm -rf /var/lib/apt/lists/* RUN echo “jenkins ALL=NOPASSWD: […]

Kubernetes plugin containers can't connect back to Jenkins

I have a Jenkins and Kubernetes cluster running within the same network in AWS. Jenkins has it’s own instance. I have configured the Kubernetes plugin as follows: The recommended JNLP docker image is used. Jenkins JNLP port is configured to be static 5000. Now when I kick off the job, it shows me that the […]

How to inject external environment variables to jenkins configuration and pipeline jobs?

We are running Jenkins inside a docker container using docker-compose. Out goal is to be able to run production and test environments that are configurable by environment variables given to the docker-compose command. We define several environment variables in the docker-compose.yml file, such as: environment: – gitlabrepourl=http://url-of-our-git-repo/repo-name – hosturl=http://jenkins-host-url The environment variables are present inside […]

Running jenkins on docker to simulate red hat linux

I am very new to Docker. I am using mac OS and i have a local Jenkins server up and running. I would like to simulate the red hat Linux environment by using docker. I am supposed to perform the following steps, Get the docker image for RHEL – (Red Hat Enterprise Linux) From where […]

MobileBackups folders interfering with Jenkins use of Docker slave

I’m trying to use the CloudBees Docker Custom Build Environment Plugin. Whether I tell it pull the evarga/jenkins-slave image from repository, or build from Dockerfile on my machine I receive the same error: docker: Error response from daemon: Mounts denied: aces for more info. . olders/ns/ly6hv_513tl6qqslrb2vj_dw0000gn/T/ is not shared from OS X and is not […]

Move file from Docker container to Host system in Jenkins

I have configured Jenkins in Docker container. I am able to take a build. After a build I want to move WAR file into my Tomcat server which is running in host system. I have added copy command in post build task. Jenkins is not able to move the WAR to host system , since […]

jenkins multibranch project does not start container as slave

I have a jenkins setup with docker installed on the same host. I’ve read several tutorials that helps me create a slave as a docker container. so the pipeline of each branch will be performed on a docker container which acts as slave to the jenkins master. This works for a pipeline project, but for […]

Symfony3 fetch wrong data from database

I have a symfony 3 project that work fine on my local machine but in deploiyment on docker and after clearing cache and give 777 right to the var folder the project work but with wrong data. this is the controler method for exemple: /** * @Route(“/post/index”,name=”postindex”) */ public function indexAction() { $Posts = $this->getDoctrine()->getRepository(‘AppBundle\Entity\Post’)->findAll(); […]

docker tomcat re-deploy application

I have a deploy job in a jenkins docker container to deploy the application in docker tomcat container running in a port:8383 inside the jenkins container port 8080. I can able to deploy the application successfully and start the server for the first time. However if I want to redeploy the application , the deploy […]

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