doubleplusc opened 9 months ago
|
||||||||||
You may use job dependency to retrieve published artifacts of another job into workspace of current job. |
||||||||||
Check this tutorial for details: |
||||||||||
Thanks for your response, Robin. Much headbanging later, I sort of figured out the issue. In the second job, my container default directory is My question is now a little different. For running separate Docker containers, is putting |
||||||||||
Sorry there is a mistake here. The environment varibale should be Another approach is to mount the job workspace into your container via volume mounts. To mount job workspace itself, specify the source path as |
||||||||||
Robin Shen changed fields 9 months ago
|
||||||||||
Robin Shen changed title 9 months ago
|
||||||||||
Robin Shen changed fields 9 months ago
|
||||||||||
Robin Shen changed fields 9 months ago
|
||||||||||
Awesome, thanks for looking into it! |
||||||||||
OneDev changed state to 'Closed' 9 months ago
|
||||||||||
State changed as code fixing the issue is committed (94979a94) |
||||||||||
OneDev changed state to 'Released' 9 months ago
|
||||||||||
State changed as build #3946 is successful |
Type |
Bug
|
Priority |
Minor
|
Assignee | |
Affected Versions |
<=8.6.3
|
Labels |
No labels
|
I am extremely new to Docker so apologies if I am missing something obvious.
My OneDev instance is running in a Docker container. I have a set of published artifacts in the job workspace that I want to process in another Docker container. That container starts inside the home directory.
I don't quite understand how to use the environment variable
JOB_WORKSPACE
as explained in the Run Docker Container step type. I cannot use@JOB_WORKSPACE@
,${JOB_WORKSPACE}
, or$JOB_WORKSPACE
in Working Directory. Is the variable supposed to be manually set or referenced in a different way?