Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.2.8
-
None
-
1
-
Severity 3 - Minor
-
0
-
Description
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
- create a BbS repository in Bamboo
- enable the “Use shallow clones” option
- disable the “Enable repository caching on agents” option
- create a plan that uses the above repo, and has the following tasks:
- script task with single “sleep 10” command
- source code checkout task, with the “Force Clean Build” enabled and empty “Checkout Directory”
- another script task that will use some files from the repo
- enable Docker Runner for the plan and use alpine/ubuntu image; leave the default volume mappings
- dedicate a remote agent to the plan
- trigger the plan using the following script
echo A >> abc/a.txt && curl -X POST -u <ADMIN>:<PASSWORD> <BAMBOO_URL>/rest/api/latest/queue/PROJ-PLAN && git add . && git commit -m "first" && git push
(this will create a new commit after the plan is triggered, but before the source code is checked out on the agent)
Expected Results
The plan is executed successfully
Actual Results
The plan fails because the build working directory is empty after the source code checkout task.
Because of the new commit shallow clone fails at first, and an attempt to recover from it breaks the build working directory volume. The source code checkout actually succeeds, and the repository is ok on the agent filesystem, it’s just broken in the docker runner container.
Workaround
Configure a custom “Checkout Directory” in the source code checkout task
Attachments
Issue Links
- mentioned in
-
Page Loading...