mirror of https://github.com/mongodb/mongo
SERVER-83354 Schedule copybara instance after each commit made (#17020)
GitOrigin-RevId: f70b17b6ae151ab93e9133e30eea4d7bc09f2c47
This commit is contained in:
parent
bfd7723930
commit
07870b62ff
|
|
@ -104,6 +104,7 @@ def main():
|
|||
git_destination_url_with_token = f"https://x-access-token:{access_token_copybara_syncer}@github.com/mongodb/mongo.git"
|
||||
|
||||
# Set up the Docker command and execute it
|
||||
# --last-rev Defines the last revision that was migrated to the destination during the initial synchronization between repositories using Copybara
|
||||
docker_cmd = [
|
||||
"docker run",
|
||||
"-v ~/.ssh:/root/.ssh",
|
||||
|
|
@ -111,7 +112,7 @@ def main():
|
|||
f'-v "{current_dir}/copybara.sky":/usr/src/app/copy.bara.sky',
|
||||
"-e COPYBARA_CONFIG='copy.bara.sky'",
|
||||
"-e COPYBARA_SUBCOMMAND='migrate'",
|
||||
f"-e COPYBARA_OPTIONS='-v --git-destination-url={git_destination_url_with_token}'",
|
||||
f"-e COPYBARA_OPTIONS='-v --last-rev=0dd92d9 --git-destination-url={git_destination_url_with_token}'",
|
||||
"copybara copybara",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -12483,9 +12483,10 @@ buildvariants:
|
|||
modules:
|
||||
- enterprise
|
||||
display_name: "* Copybara Sync Between Repos"
|
||||
cron: "0 4 * * *" # From the ${project_nightly_cron} parameter.
|
||||
activate: true
|
||||
run_on:
|
||||
- ubuntu2204-small
|
||||
stepback: false
|
||||
tasks:
|
||||
- name: sync_repo_with_copybara
|
||||
priority: 50
|
||||
|
|
|
|||
Loading…
Reference in New Issue