Tag: jenkins

Jenkins: Don't want to trigger on Git Tag (No Workspace)

I have users who need to trigger jenkins jobs on Github (Enterprise) pushes. So all I have access to are Webhooks, and the Git Service hooks. These hooks push even if the only commit was a tag. Some users auto-tag their builds if they succeed, this auto-tag causes a new webhook to fire and it […]

Jenkins Dockerfile – unable to prepare context: unable to evaluate symlinks in Dockerfile

I’m having the following issue trying to build a project in Jenkins with the “Build inside a Docker container” functionality. Started by user UserName LastName Building in workspace /opt/bitnami/apps/jenkins/jenkins_home/jobs/app/workspace /opt/bitnami/git/bin/git rev-parse –is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository /opt/bitnami/git/bin/git config remote.origin.url https://github.com/pierreburgy/sails-app # timeout=10 Fetching upstream changes from https://github.com/pierreburgy/sails-app /opt/bitnami/git/bin/git –version # […]

jenkins docker plugin job “Permission denied” error

I’ve got a CI environment on an Ubuntu 14.04 machine, setup with Jenkins, Gitlab and docker runtime installed. I configured a project myproject-hello-world (a java/maven project) and a corresponding jenkins job, consisting in the invocation of the following target (in Jenkins > myproject-hello-world job configuration page) Invoke top-level Maven targets clean package docker:build -DskipTests The […]

combining cloudbees ec2 docker image with docker in docker

Am trying to combine docker in docker feature with in cloudbees ecs image. Both the images are build using different linux based distribution. Cloudbees ECS slave image is build use base ubuntu 14.04 and docker:1.8-dind is build from base debian:jessie. What is the best way to combine both into one docker image with both features […]

Docker build ubuntu:xenial issue

I try to build a docker image with docker-py in Jenkins. The scripts looks like this: # Let’s build the toolchain-base-image from io import BytesIO from docker import Client from pprint import pprint import sys cli = Client(base_url=”tcp://″) #cli = Client(base_url=’unix://var/run/docker.sock’) GCC_VERSION_TAG=”4_9″ with open(“/path/to/docker-” + GCC_VERSION_TAG + “-gcc-base-image-dockerfile”, mode=”r”) as dockerfile: f = BytesIO(dockerfile.read().encode(‘utf-8’)) try: […]

Deploy apps from release server

I don’t like when it comes to release my projects on production server.. May be i just don’t have enough experience, nobody taught me how to do this in a right way. For now i have several repos with scala (on top of spray). I have everything to build and run this projects on my […]

Error trying to install Ansible in Jenkins image

I’m trying to install Ansible in my Jenkins image (this way). This is my Dockerfile: FROM jenkins USER root RUN apt-get install -y software-properties-common RUN apt-add-repository ppa:ansible/ansible RUN apt-get update RUN apt-get install -y ansible USER jenkins But when I build the image, I get this error: W: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found […]

Jenkins and running rake tasks

I’m having some issues running a rake task from within Jenkins (within a docker container) as part of a build process (I have the Rake plugin installed). I am getting the error java.io.IOException: Cannot run program “rake” (in directory “/var/jenkins/workspace/HendricksFeaturesCopy”): error=2, No such file or directory Which i don’t understand as when i pwd $ECHO […]

How to configure xvfb default installation on Jenkins startup?

I am setting up a Jenkins instance in Docker. I am using /usr/local/bin/plugins.sh to install the plugins. I am copying groovy scripts to /usr/share/jenkins/ref/init.groovy.d/ to initialize some configuration. I can’t figure out how to initialize an Xvfb installation location. There are classes is the org.jenkinsci.plugins.xvfb namespace. I am not sure which class to use to […]

Jenkins build an image for Docker?

I’m a beginner with Jenkins CI integration with Docker. My virtual machine tcp:// I created an image “personluz” with my SVN source code and the configuration like this image image config But the result is: error FATAL: Cannot run program “docker“: error=2, No such file or directory Could anyone have some idea? Thanks

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