UNCLASSIFIED - NO CUI

bb-docs-compiler pipeline has a race condition

Bug

Description

When the nightly docs gen on-schedule-latest and on-schedule-tag pipelines run at the same time there is a race condition when both plans attempt to push to docs at the same time.

Example

$ git push origin docs
remote: error: cannot lock ref 'refs/heads/docs': is at 1ad2af0c22b169aa49306313048e9ed4513df458 but expected 22c795cff833ee90db217b0ac90ffc79b7568b8c        
To https://repo1.dso.mil/big-bang/team/tools/bb-docs-compiler.git
 ! [remote rejected]       docs -> docs (failed to update ref)
error: failed to push some refs to 'https://repo1.dso.mil/big-bang/team/tools/bb-docs-compiler.git'

Re-running the failed job resolves the issue

BigBang Version

NA