Tag: jenkins

What are the advantages of running jenkins in a docker container

I’ve found quite a few blogs on how to run your jenkins in docker but none really explain the advantages of doing it. These are the only reasons I found (https://twasink.net/2016/08/01/setting-up-a-jenkins-server-with-docker/) : 1) I want most of the configuration for the server to be under version control. 2) I want the ability to run the […]

Jenkins Pipeline: Postman Test script fails with “connect ECONNREFUSED ip:port”

I am trying to setup CI/CD pipleline for my java REST service using Jenkins in linux. Pipline is setup in Jenkins which builds the jar(if any commit) and create Docker image and runs the container in linux box and In Test stage, I have written postman collection to test the webservice running in Docker container. […]

Docker Swarm CD/CI (Jenkins, Docker)

I’m working on an automated testing enviroment with docker and jenkins but now i got stuck with the jenkins master and slaves. I’m relatively new with the whole Jenkins/Docker thing so i followed the tutorial at https://www.vip-consult.solutions/post/easy-docker-swarm-jenkins-continuous-deployment-at-scale#content I’m using the swarm plug-in to connect the slaves to the master. For this I’m creating a docker […]

Cloning Git-Hub repository from docker Jenkins instance

When I try to do the following inside the docker container: git clone <GIT_REPO> I get this error: fatal: unable to access <GIT_REPO>: gnutls_handshake() failed: The TLS connection was non-properly terminated. In order to fix this I tried adding my git-hub username/password to Jenkins “credentials” and it doesn’t work. (P.S. Git-hub repo is on the […]

building jenkins docker image from official Dockerfile

I am trying to build a jenkins docker image from official jenkins git repo: https://github.com/jenkinsci/docker. But when I try to run the container of the image using docker run -it -dP jenkins, it exits immediately and when i check the docker logs, I get the following error: : invalid option I read that the error […]

npm commands fails in jenkins pipelines with docker

i’m using jenkins for CI/CD. New project uses node.js and build fails on npm install command (as example used repo https://github.com/heroku/node-js-sample). Jenkinsfile: node { stage (‘stage0’) { checkout scm } stage (‘stage1’) { docker.withServer(‘tcp://example.com:2376’, ‘docker-example.com’) { docker.image(‘node’).inside { withEnv([‘npm_config_cache=npm-cache’, ‘HOME=.’]) { sh ‘npm install’ } } } } } Build Output: … [Pipeline] withDockerContainer 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 […]

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