Questions tagged [jenkins-docker]

110 questions
0
votes
0 answers

Use GITHUB_ACCESS_TOKEN in Jenkins inside docker for authentication

I've followed the solution provided by @biolauri in this post, in using GITHUB_ACCESS_TOKEN in Jenkins inside a docker container. Below is my stage code: stage('Push git tag') { agent { label 'docker' } steps { script { …
jaysonpryde
  • 2,733
  • 11
  • 44
  • 61
0
votes
1 answer

Jenkins gets stuck when switching user within docker container

I am running Jenkins within a Docker container on a remote server. In one of my pipelines I am using a Yocto build container to build a image. In this case I have to change the user, because Bitbake does not allow building with root…
0
votes
0 answers

Stuck with Jenkins not building my docker images

I'm running Jenkins as a container and for some reason Im having issues :D. After the pipeline runs docker build -t testwebapp:latest . I get docker: Exec format error on the Build image stage The pipeline command docker.build seems to do what it…
bobby2947
  • 27
  • 2
  • 5
0
votes
2 answers

Jenkins+Docker+Grid Execution - UnreachableBrowserException: Could not start a new session

While executing my suite dynamically on grid using Docker-compose through Jenkins, I am getting the following exception stacktrace: org.openqa.selenium.remote.DesiredCapabilities firefox INFO: Using `new FirefoxOptions()` is preferred to…
RISHI KHANNA
  • 354
  • 5
  • 23
0
votes
1 answer

Virtual environment does not open when executing shell script in Jenkins docker container

To run my python tests I created a freestyle project in Jenkins and wrote a script like this: . .env/bin/activate pip install pytest pytest --alluredir='FINAL/ws/allure-results' ./FINAL/autotests But the build crashes with the "Can't open"…
Keith
  • 37
  • 4
0
votes
1 answer

Jenkins' stash not working in step run with Dockerfile agent

I have been struggling with getting the Jenkins' declared pipeline to stash the results of steps that run under a Dockerfile agent. After a variety of Dockerfile / stash configurations, it continues to fail. Hopefully, someone can identify my…
Scott S
  • 461
  • 7
  • 17
0
votes
1 answer

Docker and Jenkins integration

I've added the BitBucket server integration plugin (https://plugins.jenkins.io/atlassian-bitbucket-server-integration/) and can connect to the BitBucket cloud repo from Jenkins: But I receive an error when I try to…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
1 answer

Jenkins using docker as an agent

I am not able to integrate Docker with Jenkins completely. I setup Docker at Cloud Node settings in the Jenkins portal. How can I use some image that contains Node, Ruby, etc? Must those images contain a JDK?
0
votes
1 answer

Docker is listening to port specified in run command

I created a pipeline in Jenkins which takes an app from Github, builds the app, and then builds an image and then finally runs that image with the app. the Dockerfile is: FROM javastreets/mule:latest COPY…
Mayur Tripathi
  • 69
  • 2
  • 12
0
votes
1 answer

Make a new container with a combination of two separate containers

I want a container which have both, docker application and jenkins application installed. I have tried building a new container from a Dockerfile - ` FROM :docker FROM :jenkins/jenkins but it only seems to have jenkins but no docker . `
0
votes
1 answer

Best way to create and use new credential in Jenkins pipeline?

So I'm constructing a Jenkins pipeline to provision (Terraform), configure (Ansible) and deploy a set of "latest"-tagged containers from our container registry. The first two stages are working perfectly. The host is provisioned and configured to…
0
votes
1 answer

docker-workflow-plugin (docker-pipeline-plugin) java.io.IOException: Failed to rm container

Is it possible to tune docker-workflow-plugin / docker-pipeline-plugin's cleanup routine? Perhaps leave the container and allow pipeline code to handle its removal in a retry block? I've got a a job that runs serial groups of 30 of these clauses…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
1 answer

Jenkins : cannot exectute docker commands from jenkins

I cannot execute any docker commands from jenkins and receieving below error, + sudo docker pull ubuntu Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: unauthorized:…
Karamzov
  • 343
  • 1
  • 4
  • 12
0
votes
0 answers

Jenkins build of Gradle project only succeeds when starting Gradle Docker container as root

I have a Jenkins running as a standalone server, i.e. it is not running as a Docker container. For building my application with Gradle I'm using a Docker image as shown below. stages { stage('Compile') { steps { script { …
Robert Strauch
  • 12,055
  • 24
  • 120
  • 192
0
votes
0 answers

Jenkins to download build time dependencies

Currently all the Jenkins server both master and nodes have wide open internet access. Our security team is trying to narrow down the internet access on these servers by asking Jenkins admin team to provide for DNS/ IP’s that Jenkins is accessing.…
chris
  • 324
  • 3
  • 17