Questions tagged [jenkins-docker]

110 questions
1
vote
1 answer

How to point on the concrete Dockerfile for the docker build command inside the jenkins pipeline?

Please let me know how to point on the concrete Dockerfile for the docker build command inside the jenkins pipeline? I am trying to give a docker build from a Jenkins pipeline, I am using a common code to run this build and would want the pipeline…
1
vote
1 answer

Jenkins concurrent builds on docker slaves

I have a Jenkins Server (2.204.1) with Docker plugin (1.1.9) and a docker cloud API. I work with Jenkins docker agents (slaves) And i map the docker slave build workspace between the container and the host in order to be able to path Artifacts to…
1
vote
0 answers

how to pass container arguments to jenkins docker cloud template

I'm using Docker plugin for Jenkins. when I configure new docker cloud with docker template everything works as expected(Jenkins spins off a container and do the job) but now I have a new build job that requires more disk space and my job failing…
alex
  • 916
  • 4
  • 12
  • 26
1
vote
1 answer

Docker SMTP container to use in Jenkins-Docker container

This topic is about Docker networking, which I can't get to allow dockerised Jenkins to use a dockerised SMTP server. Here's how I run my containers and connect them to a user-defined network, so that containers' name might be use as a target…
Bob
  • 1,495
  • 1
  • 19
  • 24
1
vote
1 answer

How to docker pull to a specific server?

I recently developed a Jenkins pipeline that does build and push for multiple projects. Now, I need to pull the built images to a specific server. As in, suppose Server 'A' is my build server and server 'B' is where I need to pull the build images…
1
vote
0 answers

Unable to launch an ephemeral windows slave - Could not pull image: image operating system "windows" cannot be used on this platform

I’ve tried to create a docker template for a simple windows-slave that must work along side already defined templates that make use of a linux-slave image(s). However, I am having the following error: Jul 04, 2019 3:47:09 PM…
1
vote
0 answers

Use Jenkins Job DSL to create / modify Docker Agent Templates

On our jenkins server we are providing ~30 Docker Agent Templates for build jobs. I've successfully automated the creation of the build jobs for those images using the Jenkins Job DSL plugin. Now I'm wondering whether I could use the Job DSL plugin…
Michael Lihs
  • 7,460
  • 17
  • 52
  • 85
1
vote
1 answer

Jenkins Docker pipeline plugin refers to old JENKINS_HOME

I recently ran into my disk limits on a Jenkins server. I decided to solve this permanently by mounting a larger volume and move the Jenkins home directory to that volume. I used this wiki page as a reference for the move:…
Bart
  • 512
  • 2
  • 5
  • 16
1
vote
1 answer

docker build with jenkins issue

i am trying to write a pipeline which first clones a repository, then builds a docker image and after that pushes the docker image to docker hub. following is my jenkins file. pipeline { agent { dockerfile true } environment { …
Shoaib Iqbal
  • 2,420
  • 4
  • 26
  • 51
1
vote
0 answers

How to get ssh public keys of a Jenkins master in a docker container

We followed Jenkins's official guide and our master is running as a docker container. I'm now trying to set up another machine as slave for this Jenkins master and I think I need to manually copy the public SSH keys of the master to the new slave…
Milad
  • 4,901
  • 5
  • 32
  • 43
1
vote
1 answer

Not able to send mail using SMTP in jenkins-docker image

I'm using jenkins docker image. I want to configure my mail to jenkins so that I can get mail regarding all builds. what changes should i make in docker-image so that i can able to send mail to myself? I'm getting this…
Chinmay Kulkarni
  • 265
  • 1
  • 5
  • 17
1
vote
1 answer

Docker ps command output is empty when adding a command to the image.run() section

Environment: docker-plugin version: 1.1.2; jenkins version: 2.0.50727; docker client/server version: 17.12.0-ce; Win 10 Pro x64; Scenario 1: I try to run the Selenoid image via Jenkinsfile with the following command: stage('Start services') { …
1
vote
1 answer

Running UI test in Jenkins Docker-Slave

With the use of Jenkins Docker Plugin we can provision the slaves dynamically. My need is to run UI tests on the automatically created slaves. Is that feasible? If yes, how can we achieve that? UI tests are WindowTester test cases for eclipse based…
Anand
  • 2,239
  • 4
  • 32
  • 48
1
vote
1 answer

How to use Jenkins Docker plugin to build a maven project inside a container

Working on a project which uses maven as the build tool. Now when using Jenkins for deployment, we need to build the project inside a docker container using Docker plugin. My understanding is that the project should be build inside the container and…
user762421
  • 503
  • 1
  • 12
  • 24
1
vote
1 answer

Jenkins Slave Offline Node Connection timed out / closed - Docker container - Relaunch step - Configuration is picking Old Port

Jenkins version: 1.643.2 Docker Plugin version: 0.16.0 In my Jenkins environment, I have a Jenkins master with 2-5 slave node servers (slave1, slave2, slave3). Each of these slaves are configured in Jenkins Global configuration using Docker…
AKS
  • 16,482
  • 43
  • 166
  • 258