Questions tagged [jenkins-docker]
110 questions
1
vote
1 answer
Jenkins docker - running a container, executing shell script etc
I'm trying to run docker containers in the Jenkins Pipeline.
I have the following in my Jenkinsfile:
stage('test') {
steps {
script {
parallel (
"gatling" : {
sh 'bash ./test-gatling.sh'
},
"python" : {
…

Alichino
- 1,668
- 2
- 16
- 25
1
vote
1 answer
How to Run parallel builds in Jenkins slaves?
I have a Jenkins master and I have configured Jenkins to create on-demand docker slaves in AWS ECS . This set up works good , when ever I run a build new slave is getting created in ECS and that slave is used to execute the build . My problem is I…

Spencer Bharath
- 507
- 2
- 7
- 21
1
vote
1 answer
Jenkins Pre-Build and Post-Build in Multi-Configuration Job
We use multi configuration job to test various combination of 2 separate components for compatibility test. These are our compatibility acceptance tests. We perform the following steps
Prepare test environment using docker and docker-compose where…

GauravJ
- 2,162
- 1
- 22
- 28
1
vote
1 answer
how to configure docker to limit the range of ports for spinning up containers
We are using Jenkins and docker for doing CI/CD. Our Jenkins is setup as master/slave style, where slaves are distributed across different data centers. when a new build needs to happen Jenkins master identifies a slave in one of the DC and spin up…

Krish
- 467
- 1
- 6
- 16
1
vote
1 answer
Unable to start container from jenkins
In Jenkins I installed Docker build step plugin.
In Jenkins, created job and in it, executed docker command selected build image. The image is created using the Dockerfile.The Dockerfile is :
FROM ubuntu:latest
#OS Update
RUN apt-get update
RUN…

user2439278
- 1,222
- 7
- 41
- 75
1
vote
2 answers
Do docker pull using jenkins
I would like to do next steps using jenkins:
1- docker pull
2- docker run -i -t
I´ve installed docker plugin on jenkins but is it this prossible? The documentations in docker plugin page is very poor .

Juan Reina Pascual
- 3,988
- 7
- 21
- 34
1
vote
2 answers
Building ASP.NET 5 with Jenkins inside a docker container
I'm trying to build an Asp.net 5 application with Jenkins. Jenkins is hosted inside a docker container (The image is based on the official jenkins docker image).
ASP.Net 5 has been installed using the ubuntu instructions into the container rooting…

RubbleFord
- 7,456
- 9
- 50
- 80
0
votes
0 answers
Volume Synchronization Issue Between Jenkins Container and Docker Containers Launched from a Pipeline
I have a Jenkins container defined in a docker-compose.yml file as follows:
jenkins:
image: jenkins/jenkins:lts
...
volumes:
- /srv/jenkins_workspace:/var/jenkins_home/workspace
- /usr/bin/docker:/usr/bin/docker
-…

user60108
- 3,270
- 2
- 27
- 43
0
votes
1 answer
Jenkins while trying to execute job on docker cloud node: ‘/’ is an unsafe character
Jenkins system log:
Jul 14, 2023 7:56:31 AM INFO io.jenkins.docker.DockerTransientNode$2 println
Removed container 'aee593f554f96a40ac29269c6f5f80bc6368d7c6820aa899755064e485f6e41d' for node 'jenkins/agent:latest-alpine-jdk17-0000faawen3b3'.
Jul…

Wortig
- 963
- 2
- 11
- 37
0
votes
0 answers
Jenkins Docker Cloud not using next available agent template with same label
The problem:
My Jenkins instance is set up to use Docker in a "cloud" configuration (i.e., not using the docker directive in a pipeline script, but instead spinning up containers as traditional agents on-demand. Configured under…

dghodgson
- 113
- 4
0
votes
1 answer
Is it possible to get the docker container IP in Jenkins using the Docker plugin?
I am using the Jenkins Docker plugin in the pipeline to start a background mongodb container for testing, using:
stage('Start') {
steps {
script {
container = docker.image('mongo:latest').run('-p 27017:27017 --name mongodb -d')
}
…

vgru
- 49,838
- 16
- 120
- 201
0
votes
0 answers
How to host Jenkins on docker image which was previously using Jenkins server?
So I had my Jenkins running on EC2 Instance we backed up everything by creating a tar file of jenkins_home folder and saved it.
We had requirement tp run that Jenkins on docker image due to boot up Jenkins installation issues so what i did what…

Nitin k
- 1
- 1
0
votes
0 answers
Problems when trying to run a Ruby container on a docker agent in Jenkins
I'm in a bit of a pickle. One thing first - I used the following video as a guide. The link is timestamped (https://youtu.be/6YZvp2GwT0A?t=2362).
I have a jenkins running inside a docker container. What I am now trying to do is set up an additional…

Theoran
- 87
- 1
- 8
0
votes
0 answers
Using image built by kaniko in Jenkins
How can I use an image built by kaniko in Jenkins pipeline? I want to build the image, use that image to run tests for my app, and then push the image. With docker that would look something like this:
steps {
container('docker') {
script {
…

Rapolas K.
- 1,669
- 26
- 34
0
votes
0 answers
Jenkins does not run commands in docker agent
I'm new in Jenkins and learning it right now.
I read that modern way to use Jenkins is to use docker containers as agents so:
I created jenkins image with docker installed
FROM jenkins/jenkins:lts
USER root
RUN apt-get update -qq && \
apt-get…

TMateusz
- 1
- 1