Skip to content

Run maintenance operations for all repos in RepositoryTrackingInfo #3822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

max-zaytsev
Copy link

SourceFolder.json has RepositoryTrackingInfo property where all fetched repos are listed.
Previously, we only ran maintenance operations for build_sourcesdirectory
Fixed this to run for sources directories from RepositoryTrackingInfo

{
  "build_artifactstagingdirectory": "2\\a",
  "agent_builddirectory": "2",
  "collectionUrl": "https://dev.azure.com/org/",
  "definitionName": "multi-stage-with-resources",
  "repositoryTrackingInfo": [
    {
      "identifier": "self",
      "repositoryType": "Git",
      "repositoryUrl": "https://org@dev.azure.com/proj/test/_git/test",
      "sourcesDirectory": "2\\Projects\\Cores\\test"
    },
    {
      "identifier": "test2",
      "repositoryType": "git",
      "repositoryUrl": "https://org@dev.azure.com/proj/test/_git/test2",
      "sourcesDirectory": "2\\Projects\\Cores\\test2"
    }
  ],
  "fileFormatVersion": 3,
  "lastRunOn": "04/19/2022 11:19:12 +03:00",
  "repositoryType": "Git",
  "lastMaintenanceAttemptedOn": "04/21/2022 17:32:06 +03:00",
  "lastMaintenanceCompletedOn": "04/21/2022 17:32:11 +03:00",
  "build_sourcesdirectory": "2\\s",
  "common_testresultsdirectory": "2\\TestResults",
  "collectionId": "240741e6-a501-4c02-b604-5a6394254a7e",
  "definitionId": "11",
}

@max-zaytsev max-zaytsev reopened this May 12, 2022
@max-zaytsev
Copy link
Author

It looks like sourcesDirectory from repositoryTrackingInfo in SourceFolder.json does not always point to the actual location of the git repository
This need to be fixed in order to run maintenance jobs for all repos in agent folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant