Comments (1)
The problem was related to this mount triggered by MavenInDocker
(realized by Docker.Image.mountJenkinsUser
):
-v /var/jenkins_home/workspace/ature_3_continuous_delivery-6HRXLXYING3RPQ2T3ATY6DOVMNEXY7ZFTGPCHQBMB7KHPI2V5JBQ/.jenkins/etc/passwd:/etc/passwd:ro
The problem on this specific Jenkins instance was, that the build executor of the Jenkins instance was a docker container that mounted the docker socket so Jenkins Pipelines can start Docker containers on the same docker host as the build executor (i.e. sibling containers).
However, the path /var/lib/jenkins_home
on the host was mounted into /var/jenkins_home
on the build executor (see jenkinsci/docker/Dockerfile).
So, when the Pipeline (on the build executor) mounted files from the workspace to its sibling container, the docker host could not mount /var/jenkins_home
because it did not exist on the host (as the files were positioned under /var/lib/jenkins_home
there).
So we learned:
When build executors are Docker containers that allow pipelines to access their docker host,
the JENKINS_HOME
in the build executor's container should have the same absolute path as the JENKINS_HOME
on the docker host.
Otherwise in Pipelines mounting files from the workspace into docker containers created within the Pipeline will fail.
There are two solutions:
- Change the
JENKINS_HOME
on the docker host - Change the
JENKINS_HOME
in the build executor container.
from ces-build-lib.
Related Issues (20)
- Version of markdown linkchecker is not configurable
- HTTPClient: Special characters will not escaped in auth
- Calling K3d constructor from Jenkinsfile fails
- Add Helm-Repo-Config to K3D-Cluster
- Dockerfile linter is old and broken sometimes
- Split "component-operator-helm-repository" config in separate values
- Install Helm in K3d
- Use helm for setup deployment in k3d
- Update k3d version and k3s image
- ImageURL in dogu.json has double-double quotes
- Improve wait mechanism in k3d setup and dogu installation.
- no markdown link checker
- Add wrapper for dogu registry
- Add bats test class to execute bats tests
- Use file references when pushing k8s yamls
- Add function to collect the log files for various cluster resources
- Split k3d setup so k8s-ces-setup benefits from partial setup procedures
- Collect events with describe from kubernetes ressources.
- Add dockerfile and shell linter
- SonarCloud error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ces-build-lib.