Git Product home page Git Product logo

Comments (5)

ngsoftwaredev avatar ngsoftwaredev commented on July 28, 2024 1

Hi, I ran some tests and it turns out the managed Jenkins we are using doesn't even have Maven installed on the agents...

Sorry to have bothered you, and many thanks for your reactivity!

from docker-images.

felipecrs avatar felipecrs commented on July 28, 2024

HOME within devcontainer is /home/devcontainer, so the m2 should be at /home/devcontainer/.m2. Have you tried it?

from docker-images.

ngsoftwaredev avatar ngsoftwaredev commented on July 28, 2024

Hi, thanks for your answer. Yes I tried it, but then maven can't create subdirectories in /home/devcontainer/.m2, even if I force the volume mount as read-write...

from docker-images.

felipecrs avatar felipecrs commented on July 28, 2024

I'm trying to test this.

from docker-images.

felipecrs avatar felipecrs commented on July 28, 2024

I just added a test to verify that this works:

https://github.com/felipecrs/docker-images/blob/629ab4e916fa452c345177f8629d1d68d630b392/jenkins-agent-dind/test-fixtures/jobs/test-agent-scripted/Jenkinsfile

And it's working.

I believe in your case, the ~/.m2 folder in your Jenkins Agent is write-protected by some rule.

Can you stat ~/.m2 within and without the container and paste here the output?

from docker-images.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.