You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this issue should be here, or rather be discussed in the cli repository - please let me know if I should move it.
I've noticed, that when running drone exec there will be no temporary volume created for workspace.
This leads to different behaviour on the agent and with drone exec:
On the agent:
the folder /workspace will stay persistent between builds
Locally:
/workspace is not persistent between steps
Scenario where this is relevant:
I have a pipeline, where I test modules for an application. That application expects these modules to be place in a specific directory (/application/modules/<mymodule>) otherwise they can't be tested within the application framework.
With the following definition for workspace+path I am able to accomplish this when running my builds on an agent:
The contents created at /workspace/application will persist between further drone steps (when run on an agent). However locally, this is not the case.
When comparing both execution flows, I realized that drone exec only mounts the current folder to workspace+path, but does not create a volume for /workspace
When using drone exec --volumes "workspace:/workspace" the behaviour would be the same as when run on an agent.
Not sure if this issue should be here, or rather be discussed in the cli repository - please let me know if I should move it.
I've noticed, that when running
drone exec
there will be no temporary volume created forworkspace
.This leads to different behaviour on the agent and with drone exec:
On the agent:
/workspace
will stay persistent between buildsLocally:
/workspace
is not persistent between stepsScenario where this is relevant:
I have a pipeline, where I test modules for an application. That application expects these modules to be place in a specific directory (
/application/modules/<mymodule>
) otherwise they can't be tested within the application framework.With the following definition for workspace+path I am able to accomplish this when running my builds on an agent:
The contents created at
/workspace/application
will persist between further drone steps (when run on an agent). However locally, this is not the case.When comparing both execution flows, I realized that drone exec only mounts the current folder to workspace+path, but does not create a volume for
/workspace
When using
drone exec --volumes "workspace:/workspace"
the behaviour would be the same as when run on an agent.Simple yaml to reproduce the effect:
Proposal:
Also create a workspace volume when running locally
The text was updated successfully, but these errors were encountered: