Tag: jenkins

Connection issue with Jenkins within Docker on RaspberryPi 3 (rpi-jenkins) when cloning a Bitbucket Git Repo

I’m currently playing around with Jenkins on Raspi within Docker (using dilgerm/rpi-jenkins image). Now I have a problem with connecting to a Bitbucket Git repository. When entering the repository url, I get (the commonly known) “Failed to connect to repository” When using https and providing credentials (via Jenkins Credentials store), I get the error. When […]

docker centos:6.6 image “/bin/sh: java: command not found” java is installed

I have a docker container from centos where I installed maven and jdk1.7 for jenkins slaves (to cut down on the build time where jenkins installs jdk and maven) When I start a container docker run -t -i jenkv1 /bin/bash [root@095586d24ad9 /]# java -version java version “1.7.0_51” Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) […]

Permission Denied while trying to connect to Docker Daemon while running Jenkins pipeline in Macbook

I am trying to run Jenkins pipeline job in my macbook. I also have docker instance running locally. Initially I got the “docker command not found” error while running the Jenkins Job. I fixed the error by adding a symlink “ln -f -s /Applications/Docker.app/Contents/Resources/bin/* /usr/local/bin“ I also applied these two changes so that jenkins user […]

No space issue Jenkins – in docker

I am running Jenkins inside docker. i receive the following space issue. gzip: /tmp/sbt_a74fec8a/xoquick-1.0.tar.gz: No space left on device java.lang.RuntimeException: Error gziping /tmp/sbt_a74fec8a/xoquick-1.0.tar. Exit code: 1 at scala.sys.package$.error(package.scala:27) at com.typesafe.sbt.packager.universal.Archives$.gzip(Archives.scala:93) at com.typesafe.sbt.packager.universal.Archives$$anonfun$9.apply(Archives.scala:111) at com.typesafe.sbt.packager.universal.Archives$$anonfun$9.apply(Archives.scala:111) at com.typesafe.sbt.packager.universal.Archives$$anonfun$makeTarball$1.apply(Archives.scala:136) at com.typesafe.sbt.packager.universal.Archives$$anonfun$makeTarball$1.apply(Archives.scala:118) at sbt.IO$.withTemporaryDirectory(IO.scala:285) at com.typesafe.sbt.packager.universal.Archives$.makeTarball(Archives.scala:118) at com.typesafe.sbt.packager.universal.Archives$$anonfun$10.apply(Archives.scala:111) at com.typesafe.sbt.packager.universal.Archives$$anonfun$10.apply(Archives.scala:111) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at […]

How to limit aws instance ip range generated by ec2-instance create cli script?

In my jenkins environment, i have configured the AWS cli, which generates the AWS instance on the run using “ec2-run-instances” command. On this i create docker and run it. However, occassionally i need to debug the generated instance manually. Now the issue is that i am working in a secured environment, where access to unknown […]

not able to deploy k8s pod when tried through jenkins job on GCE

I have created one cluster in google container engine & in that i have deployed one pod having jenkins running in it. then configiured one job which will build,run,push & deploy sample app. so all these job steps are executing except “deploy-sampleapp-step” due to below error [sampleapp_master-HAWDXNK5BCRQ7EWPPOHGW7RUWBBM25WIAIKOP6UBHIDYZGTMQIJA] Running shell script + kubectl –namespace=production apply -f […]

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 will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.