Skip to content
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

Move the select module logic to variable #18683

Merged
merged 1 commit into from
Jun 23, 2022
Merged

Conversation

wyunchi-ms
Copy link
Contributor

Description

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
      • {Please put the link here}
    • the markdown help files have been regenerated using the commands listed here

@wyunchi-ms
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@wyunchi-ms wyunchi-ms force-pushed the wyunchi/pipeline/speed-up branch from 8298d25 to cab1dae Compare June 23, 2022 09:50
@wyunchi-ms
Copy link
Contributor Author

/azp run azure-powershell - windows-powershell

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@VeryEarly VeryEarly merged commit 6e5f46b into main Jun 23, 2022
@VeryEarly VeryEarly deleted the wyunchi/pipeline/speed-up branch June 23, 2022 12:03
@@ -193,8 +193,7 @@ private List<string> GetDependentModuleList(string moduleName, Dictionary<string
// Run a selected module list instead of run all the modules to speed up the CI process.
private List<string> GetSelectedModuleList()
{
string[] lines = System.IO.File.ReadAllLines(@"./tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/SelectedModuleList.txt");
return new List<string>(lines);
return new List<string>(Environment.GetEnvironmentVariable("SELECTEDMODULELIST").Split(';'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wyunchi-ms Hi Yunchi, I got a null reference error on this line when trying to build locally by dotnet build .\build.proj /p:TargetModule=Accounts. Can you take a look?

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.

3 participants