Project is not present in job-workspace (OD-1821)
Closed
Filip Strajnar opened 4 months ago

I'm using shell executor (Server Shell Executor as per https://docs.onedev.io/concepts#job-executor). Workspace does not contain my projects, even though as per https://docs.onedev.io/concepts#job-workspace , repository is supposed to be copied into it. Below is the log, where the script executed simply runs ls -la to prove the workspace is empty, even though I expect my repository to be present.

13:12:47 Pending resource allocation...
13:12:47 Executing job (executor: shell-executor, agent: ***)...
13:12:47 Downloading job dependencies...
13:12:47 Running step "LS"...
13:12:47 total 8
13:12:47 drwxr-xr-x 2 root root 4096 Mar 27 14:12 .
13:12:47 drwxr-xr-x 4 root root 4096 Mar 27 14:12 ..
13:12:47 Step "LS" is successful (0 seconds)
13:12:48 Job finished
Robin Shen commented 4 months ago

Make sure to add a checkout step before your command step.

Filip Strajnar commented 4 months ago

Thank you very much for your help. That actually resolved the issue I was having. Is there perhaps some resource I should've read that I missed?

Robin Shen changed state to 'Closed' 4 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 4 months ago

The getting started guide demonstrates that.

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1821
Please wait...
Page is in error, reload to recover