Tag: jenkins

How can i pre-install plugins in jenkins on Windows docker?

I am working on Windows docker, trying to install plugins into my jenkins using docker scripts and make it ready for startup. On linux docker i used to install plugins like this RUN /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt is there any similar way in Windows docker?

Jenkins Job Builder not creating publishers

hope someone can help – i’m having a nightmare with JJB. If I comment out the publishers from my JJB yaml script it builds the tasks fine – as soon as I add in any publishers to any of the tasks in the project I get the following error: Duplicate entry point found for component […]

auto deploy to docker from nexus repo when maven project version changed

I want to use jenkins to auto detect a version change from my svn source base. Below sequence is what I want: push a new version, 2.0.0, to svn jenkins to detect the commit changes, and packge and deploy the jar file to nexus maven repo. Of course with a new version folder. after the […]

How to configure a Jenkinsfile to build docker image and push it to a private registry

I have two questions. But maybe I don’t know how to add tags for this question so that I added the tag for both. First question is related to Jenkins plugin usage to bake and push docker image using this. Below is my Jenkinsfile script. I finished building jar file in target directory. Then I […]

How do I fail a Jenkins build if a Docker Pipeline Plugin withRun command returns a non-zero exit code?

I’m using the Docker Pipeline Plugin to execute my build scripts via Docker containers. I noticed that if I had a script return a non-zero exit code when executing within an inside() command, Jenkins would mark the pipeline execution as a failure. This example Jenkinsfile illustrates that scenario: docker.image(‘alpine’).inside() { sh ‘exit 1’ } However, […]

How to push the artifacts into docker image in Jenkins

How can i create a docker image of the artifacts using docker instruction. I am using “Build Inside a docker container” in jenkins job. This is the instruction in the dockerfile: install openjdk 8`RUN apt-get update && \ apt-get install -y openjdk-8-jdk && \ apt-get install -y ant && \ apt-get clean;` Then I need […]

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 […]

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