Docker pipeline's “inside” not working in Jenkins slave running within Docker container

后端 未结 1 1367
自闭症患者
自闭症患者 2021-01-06 04:17

I\'m having issues getting a Jenkins pipeline script to work that uses the Docker Pipeline plugin to run parts of the build within a Docker container. Both Jenkins server an

相关标签:
1条回答
  • 2021-01-06 05:11

    I've seen variations of this issue, also with the agents powered by the kubernetes-plugin.

    I think that for it to work the agent/jnlp container needs to share workspace with the build container.

    By build container I am referring to the one that will run the bundle install command.

    This could be possibly work via withArgs

    The question is why would you want to do that? Most of the pipeline steps are being executed on master anyway and the actual build will run in the build container. What is the purpose of also using an agent?

    0 讨论(0)
提交回复
热议问题