content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name: Backport PR to branch\non:\n issue_comment:\n types: [created]\n schedule:\n # once a day at 13:00 UTC to cleanup old runs\n - cron: '0 13 * * *'\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n actions: write\n\njobs:\n backport:\n uses: dotnet/arcade/.github/workflows/backport-base.yml@e80f44b15b3050d868dc8fb58d0fa514ca8c7451 # 2025-01-13\n with:\n pr_description_template: |\n Backport of #%source_pr_number% to %target_branch%\n\n /cc %cc_users%\n\n # %source_pr_title%\n\n Summary of the changes (Less than 80 chars)\n\n ## Description\n\n {Detail}\n\n Fixes #{bug number} (in this specific format)\n\n ## Customer Impact\n\n {Justification}\n\n ## Regression?\n\n - [ ] Yes\n - [ ] No\n\n [If yes, specify the version the behavior has regressed from]\n\n ## Risk\n\n - [ ] High\n - [ ] Medium\n - [ ] Low\n\n [Justify the selection above]\n\n ## Verification\n\n - [ ] Manual (required)\n - [ ] Automated\n\n ## Packaging changes reviewed?\n\n - [ ] Yes\n - [ ] No\n - [ ] N/A\n\n ----\n\n ## When servicing release/2.1\n\n - [ ] Make necessary changes in eng/PatchConfig.props\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\backport.yml | backport.yml | YAML | 1,274 | 0.95 | 0 | 0.2 | python-kit | 594 | 2025-01-28T02:26:33.634328 | GPL-3.0 | false | 3a2d7dd321048bcbc8c413df9590eb35 |
name: Inter-branch merge workflow\non:\n push:\n branches:\n - release/**\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n Merge:\n uses: dotnet/arcade/.github/workflows/backport-base.yml@e80f44b15b3050d868dc8fb58d0fa514ca8c7451 # 2024-06-24\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\inter-branch-merge-flow.yml | inter-branch-merge-flow.yml | YAML | 264 | 0.8 | 0 | 0 | react-lib | 654 | 2024-01-08T01:23:06.770399 | BSD-3-Clause | false | cbc3dcab6045cf1d7e0b801811692916 |
name: Locker - Lock stale issues\non:\n schedule:\n - cron: '34 12 * * 1-5' # Once per weekday, overnight PT, uncommon minute of hour\n\n workflow_dispatch:\n # Manual triggering through the GitHub UI, API, or CLI\n inputs:\n daysSinceClose:\n required: true\n default: "30"\n daysSinceUpdate:\n required: true\n default: "30"\n\npermissions:\n issues: write\n pull-requests: write\n\njobs:\n main:\n runs-on: ubuntu-latest\n if: ${{ github.repository_owner == 'dotnet' }}\n steps:\n - name: Checkout Actions\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n repository: "microsoft/vscode-github-triage-actions"\n path: ./actions\n ref: 066bee9cefa6f0b4bf306040ff36fc7d96a6d56d # Pin to commit: https://github.com/microsoft/vscode-github-triage-actions/commit/066bee9cefa6f0b4bf306040ff36fc7d96a6d56d\n - name: Install Actions\n run: npm install --production --prefix ./actions\n - name: Run Locker\n uses: ./actions/locker\n with:\n daysSinceClose: ${{ fromJson(inputs.daysSinceClose || 30) }}\n daysSinceUpdate: ${{ fromJson(inputs.daysSinceUpdate || 30) }}\n ignoredLabel: "Bot: Do Not Lock"\n typeIs: issue\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\locker.yml | locker.yml | YAML | 1,284 | 0.95 | 0.025641 | 0.027778 | python-kit | 53 | 2023-07-18T09:11:06.623844 | Apache-2.0 | false | 053c0eb5578692c2c6ccc1cf0602159a |
name: Markdownlint\n\npermissions:\n contents: read\n\n# run even on changes without markdown changes, so that we can\n# make it in GitHub a required check for PR's\non:\n pull_request:\n branches: \n - main\n\njobs:\n lint:\n\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Use Node.js\n uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0\n with:\n node-version: 16.x\n - name: Run Markdownlint\n run: |\n echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"\n npm i -g markdownlint-cli\n markdownlint "docs/**/*.md"\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\markdownlint.yml | markdownlint.yml | YAML | 683 | 0.95 | 0.035714 | 0.086957 | vue-tools | 973 | 2025-01-18T20:07:06.351026 | BSD-3-Clause | false | 9b8a2dd635c066aec868377517d60e6b |
name: AspNetCore-Runtime Code Sync\non:\n # Manual run\n workflow_dispatch:\n schedule:\n # * is a special character in YAML so you have to quote this string\n # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule\n # Once per day at midnight PST (8 UTC)\n - cron: '0 8 * * *'\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n\njobs:\n compare_repos:\n # Comment out this line to test the scripts in a fork\n if: github.repository == 'dotnet/aspnetcore'\n name: Compare the shared code in the AspNetCore and Runtime repos and notify if they're out of sync.\n runs-on: windows-latest\n steps:\n - name: Checkout aspnetcore\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n # Test this script using changes in a fork\n repository: 'dotnet/aspnetcore'\n path: aspnetcore\n ref: main\n - name: Checkout runtime\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n # Test this script using changes in a fork\n repository: 'dotnet/runtime'\n path: runtime\n ref: main\n - name: Copy\n shell: cmd\n working-directory: .\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\\n env:\n ASPNETCORE_REPO: d:\a\aspnetcore\aspnetcore\aspnetcore\\n run: CopyToAspNetCore.cmd\n - name: Diff\n shell: cmd\n working-directory: .\aspnetcore\\n run: |\n mkdir ..\artifacts\n git status > ..\artifacts\status.txt\n git diff > ..\artifacts\diff.txt\n - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: results\n path: artifacts\n - name: Check and Notify\n id: check\n shell: pwsh\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n # Test this script using an issue in the local forked repo\n $issue = 'https://api.github.com/repos/dotnet/aspnetcore/issues/18943'\n $sendpr = .\aspnetcore\.github\workflows\ReportDiff.ps1\n echo "sendpr=$sendpr" >> $env:GITHUB_OUTPUT\n - name: Send PR\n if: steps.check.outputs.sendpr == 'true'\n # https://github.com/marketplace/actions/create-pull-request\n uses: dotnet/actions-create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # v4.2.3\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n path: .\aspnetcore\n commit-message: 'Sync shared code from runtime'\n title: 'Sync shared code from runtime'\n body: 'This PR was automatically generated to sync shared code changes from runtime. Fixes #18943'\n labels: area-runtime\n base: main\n branch: github-action/sync-runtime\n branch-suffix: timestamp\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\runtime-sync.yml | runtime-sync.yml | YAML | 2,837 | 0.8 | 0.038961 | 0.12 | react-lib | 115 | 2024-05-19T02:26:49.660696 | Apache-2.0 | false | ca16a44276f91e525986ccdb4736da21 |
name: Update jquery-validation\n\non:\n schedule:\n - cron: '0 0 1 * *' # Run on the first day of the month\n workflow_dispatch: # Allow manual runs\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n\njobs:\n update-jquery-validate:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Setup Node.js\n uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0\n with:\n node-version: '20.x'\n\n - name: Set RepoRoot\n run: echo "RepoRoot=$(pwd)" >> $GITHUB_ENV\n\n - name: Update dependencies\n working-directory: ${{ env.RepoRoot }}/src/Mvc/build\n run: |\n npm install --no-lockfile\n npm run build\n npm run update-identity-ui-scripts\n echo "JQUERY_VALIDATE_VERSION=$(npm ls jquery-validation --json | jq -r '.dependencies["jquery-validation"].version')" >> $GITHUB_ENV\n\n - name: Update script tags\n working-directory: ${{ env.RepoRoot }}/src/Identity/UI\n run: node update-jquery-validate.mjs\n\n - name: Create Pull Request\n uses: dotnet/actions-create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # v4.2.3\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n commit-message: Update jquery.validate to ${{ env.JQUERY_VALIDATE_VERSION }}\n title: '[Templates][Identity] Update jquery-validation to ${{ env.JQUERY_VALIDATE_VERSION }}'\n body: |\n Updates the jquery-validation scripts to ${{ env.JQUERY_VALIDATE_VERSION }}\n branch: update-jquery-validate-to-${{ env.JQUERY_VALIDATE_VERSION }}\n paths: |\n **/jquery.validate.js\n **/jquery.validate.min.js\n **/*.cshtml\n src/Identity/UI/jquery-validate-versions.json\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\update-jquery-validate.yml | update-jquery-validate.yml | YAML | 1,883 | 0.8 | 0 | 0.066667 | python-kit | 139 | 2024-08-12T12:16:55.709908 | GPL-3.0 | false | 31bdd9ed431f86cb9cd4563a02ee52ad |
name: update-dotnet-sdk\n\non:\n\n # Scheduled trigger to check for .NET SDK updates at 12 UTC every Monday\n schedule:\n - cron: '00 12 * * MON'\n\n # Manual trigger to update the .NET SDK on-demand.\n workflow_dispatch:\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n\njobs:\n update-dotnet-sdk:\n name: Update .NET SDK\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - uses: martincostello/update-dotnet-sdk@76e2c0df2303d4f6a404228105ebb7d60ace0556 # v3.4.0\n with:\n quality: 'daily'\n repo-token: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\update-sdk.yml | update-sdk.yml | YAML | 643 | 0.8 | 0.038462 | 0.095238 | node-utils | 228 | 2023-08-12T01:00:53.928017 | Apache-2.0 | false | 0a709103af0f62422ea1fd50bfbd50e1 |
name: Update Selenium and Playwright dependencies\n\non:\n schedule:\n - cron: '0 0 1-7 * 1' # Run on the first monday of the month\n workflow_dispatch: # Allow manual runs\n\npermissions:\n contents: write\n issues: write\n pull-requests: write\n\njobs:\n update-selenium-and-playwright:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n\n - name: Update dependencies\n run: pwsh eng/scripts/update-selenium-and-playwright-versions.ps1\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\update-selenium-and-playwright-dependencies.yml | update-selenium-and-playwright-dependencies.yml | YAML | 602 | 0.8 | 0 | 0 | react-lib | 3 | 2024-11-03T23:40:35.484282 | MIT | false | c873a1d5eaec2cb92e91fa876a5e50f2 |
name: Validate package-lock.json against source feeds\n\non:\n # Manual run\n workflow_dispatch:\n pull_request:\n paths:\n - 'package-lock.json'\n\njobs:\n validate-package-lock-json:\n name: 'Validate package-lock.json against source feeds'\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0\n submodules: false\n\n - name: Set up Node.js\n uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0\n with:\n node-version: 20.x\n\n - name: Run npm ci to validate package-lock.json against the feed\n shell: pwsh\n id: npm-install-script\n run: npm ci --prefer-online --fetch-retries 5 | dataset_sample\yaml\dotnet_aspnetcore\.github\workflows\validate-npm-package-lock-json.yml | validate-npm-package-lock-json.yml | YAML | 801 | 0.8 | 0 | 0.04 | awesome-app | 994 | 2024-12-19T19:07:56.110896 | GPL-3.0 | false | 6cd679e455bffd20cbc75da3ea381861 |
parameters:\n# Job schema parameters - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job\n cancelTimeoutInMinutes: ''\n condition: ''\n container: ''\n continueOnError: false\n dependsOn: ''\n displayName: ''\n pool: ''\n steps: []\n strategy: ''\n timeoutInMinutes: ''\n variables: []\n workspace: ''\n templateContext: {}\n\n# Job base template specific parameters\n # See schema documentation - https://github.com/dotnet/arcade/blob/master/Documentation/AzureDevOps/TemplateSchema.md\n # publishing defaults\n artifacts: ''\n enableMicrobuild: false\n enableMicrobuildForMacAndLinux: false\n enablePublishBuildArtifacts: false\n enablePublishBuildAssets: false\n enablePublishTestResults: false\n enableBuildRetry: false\n mergeTestResults: false\n testRunTitle: ''\n testResultsFormat: ''\n name: ''\n componentGovernanceSteps: []\n preSteps: []\n artifactPublishSteps: []\n runAsPublic: false\n\n# 1es specific parameters\n is1ESPipeline: ''\n\njobs:\n- job: ${{ parameters.name }}\n\n ${{ if ne(parameters.cancelTimeoutInMinutes, '') }}:\n cancelTimeoutInMinutes: ${{ parameters.cancelTimeoutInMinutes }}\n\n ${{ if ne(parameters.condition, '') }}:\n condition: ${{ parameters.condition }}\n\n ${{ if ne(parameters.container, '') }}:\n container: ${{ parameters.container }}\n\n ${{ if ne(parameters.continueOnError, '') }}:\n continueOnError: ${{ parameters.continueOnError }}\n\n ${{ if ne(parameters.dependsOn, '') }}:\n dependsOn: ${{ parameters.dependsOn }}\n\n ${{ if ne(parameters.displayName, '') }}:\n displayName: ${{ parameters.displayName }}\n\n ${{ if ne(parameters.pool, '') }}:\n pool: ${{ parameters.pool }}\n\n ${{ if ne(parameters.strategy, '') }}:\n strategy: ${{ parameters.strategy }}\n\n ${{ if ne(parameters.timeoutInMinutes, '') }}:\n timeoutInMinutes: ${{ parameters.timeoutInMinutes }}\n\n ${{ if ne(parameters.templateContext, '') }}:\n templateContext: ${{ parameters.templateContext }}\n\n variables:\n - ${{ if ne(parameters.enableTelemetry, 'false') }}:\n - name: DOTNET_CLI_TELEMETRY_PROFILE\n value: '$(Build.Repository.Uri)'\n # Retry signature validation up to three times, waiting 2 seconds between attempts.\n # See https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028#retry-untrusted-root-failures\n - name: NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY\n value: 3,2000\n - ${{ each variable in parameters.variables }}:\n # handle name-value variable syntax\n # example:\n # - name: [key]\n # value: [value]\n - ${{ if ne(variable.name, '') }}:\n - name: ${{ variable.name }}\n value: ${{ variable.value }}\n\n # handle variable groups\n - ${{ if ne(variable.group, '') }}:\n - group: ${{ variable.group }}\n\n # handle template variable syntax\n # example:\n # - template: path/to/template.yml\n # parameters:\n # [key]: [value]\n - ${{ if ne(variable.template, '') }}:\n - template: ${{ variable.template }}\n ${{ if ne(variable.parameters, '') }}:\n parameters: ${{ variable.parameters }}\n\n # handle key-value variable syntax.\n # example:\n # - [key]: [value]\n - ${{ if and(eq(variable.name, ''), eq(variable.group, ''), eq(variable.template, '')) }}:\n - ${{ each pair in variable }}:\n - name: ${{ pair.key }}\n value: ${{ pair.value }}\n\n # DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds\n - ${{ if and(eq(parameters.enableTelemetry, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - group: DotNet-HelixApi-Access\n\n ${{ if ne(parameters.workspace, '') }}:\n workspace: ${{ parameters.workspace }}\n\n steps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ if ne(parameters.preSteps, '') }}:\n - ${{ each preStep in parameters.preSteps }}:\n - ${{ preStep }}\n\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - template: /eng/common/core-templates/steps/install-microbuild.yml\n parameters:\n enableMicrobuild: ${{ parameters.enableMicrobuild }}\n enableMicrobuildForMacAndLinux: ${{ parameters.enableMicrobuildForMacAndLinux }}\n continueOnError: ${{ parameters.continueOnError }}\n\n - ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:\n - task: NuGetAuthenticate@1\n\n - ${{ if and(ne(parameters.artifacts.download, 'false'), ne(parameters.artifacts.download, '')) }}:\n - task: DownloadPipelineArtifact@2\n inputs:\n buildType: current\n artifactName: ${{ coalesce(parameters.artifacts.download.name, 'Artifacts_$(Agent.OS)_$(_BuildConfig)') }}\n targetPath: ${{ coalesce(parameters.artifacts.download.path, 'artifacts') }}\n itemPattern: ${{ coalesce(parameters.artifacts.download.pattern, '**') }}\n\n - ${{ each step in parameters.steps }}:\n - ${{ step }}\n\n - ${{ each step in parameters.componentGovernanceSteps }}:\n - ${{ step }}\n\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - template: /eng/common/core-templates/steps/cleanup-microbuild.yml\n parameters:\n enableMicrobuild: ${{ parameters.enableMicrobuild }}\n enableMicrobuildForMacAndLinux: ${{ parameters.enableMicrobuildForMacAndLinux }}\n continueOnError: ${{ parameters.continueOnError }}\n\n # Publish test results\n - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'xunit')) }}:\n - task: PublishTestResults@2\n displayName: Publish XUnit Test Results\n inputs:\n testResultsFormat: 'xUnit'\n testResultsFiles: '*.xml'\n searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'\n testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit\n mergeTestResults: ${{ parameters.mergeTestResults }}\n continueOnError: true\n condition: always()\n - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'vstest')) }}:\n - task: PublishTestResults@2\n displayName: Publish TRX Test Results\n inputs:\n testResultsFormat: 'VSTest'\n testResultsFiles: '*.trx'\n searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'\n testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx\n mergeTestResults: ${{ parameters.mergeTestResults }}\n continueOnError: true\n condition: always()\n\n # gather artifacts\n - ${{ if ne(parameters.artifacts.publish, '') }}:\n - ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:\n - task: CopyFiles@2\n displayName: Gather binaries for publish to artifacts\n inputs:\n SourceFolder: 'artifacts/bin'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/bin'\n - task: CopyFiles@2\n displayName: Gather packages for publish to artifacts\n inputs:\n SourceFolder: 'artifacts/packages'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/packages'\n - ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:\n - task: CopyFiles@2\n displayName: Gather logs for publish to artifacts\n inputs:\n SourceFolder: 'artifacts/log'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/log'\n continueOnError: true\n condition: always()\n \n - ${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}:\n - task: CopyFiles@2\n displayName: Gather logs for publish to artifacts\n inputs:\n SourceFolder: 'artifacts/log/$(_BuildConfig)'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/log/$(_BuildConfig)'\n continueOnError: true\n condition: always()\n - ${{ if eq(parameters.enableBuildRetry, 'true') }}:\n - task: CopyFiles@2\n displayName: Gather buildconfiguration for build retry\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)/eng/common/BuildConfiguration'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/eng/common/BuildConfiguration'\n continueOnError: true\n condition: always()\n - ${{ each step in parameters.artifactPublishSteps }}:\n - ${{ step }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\job\job.yml | job.yml | YAML | 8,953 | 0.8 | 0.164444 | 0.117949 | vue-tools | 949 | 2023-08-07T16:37:52.452698 | BSD-3-Clause | false | ddd1cfc3d70c270590cf0452a1d02df5 |
parameters:\n # Optional: dependencies of the job\n dependsOn: ''\n\n # Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool\n pool: ''\n \n CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex\n GithubPat: $(BotAccount-dotnet-bot-repo-PAT)\n\n SourcesDirectory: $(Build.SourcesDirectory)\n CreatePr: true\n AutoCompletePr: false\n ReusePr: true\n UseLfLineEndings: true\n UseCheckedInLocProjectJson: false\n SkipLocProjectJsonGeneration: false\n LanguageSet: VS_Main_Languages\n LclSource: lclFilesInRepo\n LclPackageId: ''\n RepoType: gitHub\n GitHubOrg: dotnet\n MirrorRepo: ''\n MirrorBranch: main\n condition: ''\n JobNameSuffix: ''\n is1ESPipeline: ''\njobs:\n- job: OneLocBuild${{ parameters.JobNameSuffix }}\n \n dependsOn: ${{ parameters.dependsOn }}\n\n displayName: OneLocBuild${{ parameters.JobNameSuffix }}\n\n variables:\n - group: OneLocBuildVariables # Contains the CeapexPat and GithubPat\n - name: _GenerateLocProjectArguments\n value: -SourcesDirectory ${{ parameters.SourcesDirectory }}\n -LanguageSet "${{ parameters.LanguageSet }}"\n -CreateNeutralXlfs\n - ${{ if eq(parameters.UseCheckedInLocProjectJson, 'true') }}:\n - name: _GenerateLocProjectArguments\n value: ${{ variables._GenerateLocProjectArguments }} -UseCheckedInLocProjectJson\n - template: /eng/common/core-templates/variables/pool-providers.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n ${{ if ne(parameters.pool, '') }}:\n pool: ${{ parameters.pool }}\n ${{ if eq(parameters.pool, '') }}:\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ if ne(variables['System.TeamProject'], 'DevDiv') }}:\n name: $(DncEngInternalBuildPool)\n image: 1es-windows-2022\n os: windows\n\n steps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}:\n - task: Powershell@2\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1\n arguments: $(_GenerateLocProjectArguments)\n displayName: Generate LocProject.json\n condition: ${{ parameters.condition }}\n\n - task: OneLocBuild@2\n displayName: OneLocBuild\n env:\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n inputs:\n locProj: eng/Localize/LocProject.json\n outDir: $(Build.ArtifactStagingDirectory)\n lclSource: ${{ parameters.LclSource }}\n lclPackageId: ${{ parameters.LclPackageId }}\n isCreatePrSelected: ${{ parameters.CreatePr }}\n isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}\n ${{ if eq(parameters.CreatePr, true) }}:\n isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}\n ${{ if eq(parameters.RepoType, 'gitHub') }}:\n isShouldReusePrSelected: ${{ parameters.ReusePr }}\n packageSourceAuth: patAuth\n patVariable: ${{ parameters.CeapexPat }}\n ${{ if eq(parameters.RepoType, 'gitHub') }}:\n repoType: ${{ parameters.RepoType }}\n gitHubPatVariable: "${{ parameters.GithubPat }}"\n ${{ if ne(parameters.MirrorRepo, '') }}:\n isMirrorRepoSelected: true\n gitHubOrganization: ${{ parameters.GitHubOrg }}\n mirrorRepo: ${{ parameters.MirrorRepo }}\n mirrorBranch: ${{ parameters.MirrorBranch }}\n condition: ${{ parameters.condition }}\n\n - template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish Localization Files\n pathToPublish: '$(Build.ArtifactStagingDirectory)/loc'\n publishLocation: Container\n artifactName: Loc\n condition: ${{ parameters.condition }}\n\n - template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish LocProject.json\n pathToPublish: '$(Build.SourcesDirectory)/eng/Localize/'\n publishLocation: Container\n artifactName: Loc\n condition: ${{ parameters.condition }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\job\onelocbuild.yml | onelocbuild.yml | YAML | 4,708 | 0.8 | 0.1 | 0.036697 | python-kit | 450 | 2024-04-29T10:25:28.950037 | Apache-2.0 | false | 00236b556180a527c74a077a61e1a640 |
parameters:\n configuration: 'Debug'\n\n # Optional: condition for the job to run\n condition: ''\n\n # Optional: 'true' if future jobs should run even if this job fails\n continueOnError: false\n\n # Optional: dependencies of the job\n dependsOn: ''\n\n # Optional: Include PublishBuildArtifacts task\n enablePublishBuildArtifacts: false\n\n # Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool\n pool: {}\n\n # Optional: should run as a public build even in the internal project\n # if 'true', the build won't run any of the internal only steps, even if it is running in non-public projects.\n runAsPublic: false\n\n # Optional: whether the build's artifacts will be published using release pipelines or direct feed publishing\n publishAssetsImmediately: false\n\n artifactsPublishingAdditionalParameters: ''\n\n signingValidationAdditionalParameters: ''\n\n is1ESPipeline: ''\n\n # Optional: 🌤️ or not the build has assets it wants to publish to BAR\n isAssetlessBuild: false\n\njobs:\n- job: Asset_Registry_Publish\n\n dependsOn: ${{ parameters.dependsOn }}\n timeoutInMinutes: 150\n\n ${{ if eq(parameters.publishAssetsImmediately, 'true') }}:\n displayName: Publish Assets\n ${{ else }}:\n displayName: Publish to Build Asset Registry\n\n variables:\n - template: /eng/common/core-templates/variables/pool-providers.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - group: Publish-Build-Assets\n - group: AzureDevOps-Artifact-Feeds-Pats\n - name: runCodesignValidationInjection\n value: false\n # unconditional - needed for logs publishing (redactor tool version)\n - template: /eng/common/core-templates/post-build/common-variables.yml\n\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ if ne(variables['System.TeamProject'], 'DevDiv') }}:\n name: NetCore1ESPool-Publishing-Internal\n image: windows.vs2019.amd64\n os: windows\n steps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - checkout: self\n fetchDepth: 3\n clean: true\n\n - ${{ if eq(parameters.isAssetlessBuild, 'false') }}: \n - task: DownloadPipelineArtifact@2\n displayName: Download Asset Manifests\n inputs:\n artifactName: AssetManifests\n targetPath: '$(Build.StagingDirectory)/AssetManifests'\n condition: ${{ parameters.condition }}\n continueOnError: ${{ parameters.continueOnError }}\n \n - task: NuGetAuthenticate@1\n\n - task: AzureCLI@2\n displayName: Publish Build Assets\n inputs:\n azureSubscription: "Darc: Maestro Production"\n scriptType: ps\n scriptLocation: scriptPath\n scriptPath: $(Build.SourcesDirectory)/eng/common/sdk-task.ps1\n arguments: -task PublishBuildAssets -restore -msbuildEngine dotnet\n /p:ManifestsPath='$(Build.StagingDirectory)/AssetManifests'\n /p:IsAssetlessBuild=${{ parameters.isAssetlessBuild }}\n /p:MaestroApiEndpoint=https://maestro.dot.net\n /p:OfficialBuildId=$(Build.BuildNumber)\n condition: ${{ parameters.condition }}\n continueOnError: ${{ parameters.continueOnError }}\n \n - task: powershell@2\n displayName: Create ReleaseConfigs Artifact\n inputs:\n targetType: inline\n script: |\n New-Item -Path "$(Build.StagingDirectory)/ReleaseConfigs" -ItemType Directory -Force\n $filePath = "$(Build.StagingDirectory)/ReleaseConfigs/ReleaseConfigs.txt"\n Add-Content -Path $filePath -Value $(BARBuildId)\n Add-Content -Path $filePath -Value "$(DefaultChannels)"\n Add-Content -Path $filePath -Value $(IsStableBuild)\n\n $symbolExclusionfile = "$(Build.SourcesDirectory)/eng/SymbolPublishingExclusionsFile.txt"\n if (Test-Path -Path $symbolExclusionfile)\n {\n Write-Host "SymbolExclusionFile exists"\n Copy-Item -Path $symbolExclusionfile -Destination "$(Build.StagingDirectory)/ReleaseConfigs"\n }\n\n - template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish ReleaseConfigs Artifact\n pathToPublish: '$(Build.StagingDirectory)/ReleaseConfigs'\n publishLocation: Container\n artifactName: ReleaseConfigs\n\n - ${{ if or(eq(parameters.publishAssetsImmediately, 'true'), eq(parameters.isAssetlessBuild, 'true')) }}:\n - template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n BARBuildId: ${{ parameters.BARBuildId }}\n PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n - task: AzureCLI@2\n displayName: Publish Using Darc\n inputs:\n azureSubscription: "Darc: Maestro Production"\n scriptType: ps\n scriptLocation: scriptPath\n scriptPath: $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1\n arguments: >\n -BuildId $(BARBuildId)\n -PublishingInfraVersion 3\n -AzdoToken '$(System.AccessToken)'\n -WaitPublishingFinish true\n -ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'\n -SymbolPublishingAdditionalParameters '${{ parameters.symbolPublishingAdditionalParameters }}'\n -SkipAssetsPublishing '${{ parameters.isAssetlessBuild }}'\n\n - ${{ if eq(parameters.enablePublishBuildArtifacts, 'true') }}:\n - template: /eng/common/core-templates/steps/publish-logs.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n JobLabel: 'Publish_Artifacts_Logs' \n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\job\publish-build-assets.yml | publish-build-assets.yml | YAML | 6,508 | 0.8 | 0.100629 | 0.090226 | react-lib | 837 | 2025-01-16T21:35:19.305531 | Apache-2.0 | false | c668a6a98deb846df7550aee3b107d09 |
parameters:\n # This template adds arcade-powered source-build to CI. The template produces a server job with a\n # default ID 'Source_Build_Complete' to put in a dependency list if necessary.\n\n # Specifies the prefix for source-build jobs added to pipeline. Use this if disambiguation needed.\n jobNamePrefix: 'Source_Build'\n\n # Defines the platform on which to run the job. By default, a linux-x64 machine, suitable for\n # managed-only repositories. This is an object with these properties:\n #\n # name: ''\n # The name of the job. This is included in the job ID.\n # targetRID: ''\n # The name of the target RID to use, instead of the one auto-detected by Arcade.\n # portableBuild: false\n # Enables non-portable mode. This means a more specific RID (e.g. fedora.32-x64 rather than\n # linux-x64), and compiling against distro-provided packages rather than portable ones. The\n # default is portable mode.\n # skipPublishValidation: false\n # Disables publishing validation. By default, a check is performed to ensure no packages are\n # published by source-build.\n # container: ''\n # A container to use. Runs in docker.\n # pool: {}\n # A pool to use. Runs directly on an agent.\n # buildScript: ''\n # Specifies the build script to invoke to perform the build in the repo. The default\n # './build.sh' should work for typical Arcade repositories, but this is customizable for\n # difficult situations.\n # jobProperties: {}\n # A list of job properties to inject at the top level, for potential extensibility beyond\n # container and pool.\n platform: {}\n\n is1ESPipeline: ''\n\n # If set to true and running on a non-public project,\n # Internal nuget and blob storage locations will be enabled.\n # This is not enabled by default because many repositories do not need internal sources\n # and do not need to have the required service connections approved in the pipeline.\n enableInternalSources: false\n\njobs:\n- job: ${{ parameters.jobNamePrefix }}_${{ parameters.platform.name }}\n displayName: Source-Build (${{ parameters.platform.name }})\n\n ${{ each property in parameters.platform.jobProperties }}:\n ${{ property.key }}: ${{ property.value }}\n\n ${{ if ne(parameters.platform.container, '') }}:\n container: ${{ parameters.platform.container }}\n\n ${{ if eq(parameters.platform.pool, '') }}:\n # The default VM host AzDO pool. This should be capable of running Docker containers: almost all\n # source-build builds run in Docker, including the default managed platform.\n # /eng/common/core-templates/variables/pool-providers.yml can't be used here (some customers declare variables already), so duplicate its logic\n ${{ if eq(parameters.is1ESPipeline, 'true') }}:\n pool:\n ${{ if eq(variables['System.TeamProject'], 'public') }}:\n name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore-Svc-Public' ), False, 'NetCore-Public')]\n demands: ImageOverride -equals build.ubuntu.2004.amd64\n ${{ if eq(variables['System.TeamProject'], 'internal') }}:\n name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore1ESPool-Svc-Internal'), False, 'NetCore1ESPool-Internal')]\n image: 1es-mariner-2\n os: linux\n ${{ else }}:\n pool:\n ${{ if eq(variables['System.TeamProject'], 'public') }}:\n name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore-Svc-Public' ), False, 'NetCore-Public')]\n demands: ImageOverride -equals Build.Ubuntu.2204.Amd64.Open\n ${{ if eq(variables['System.TeamProject'], 'internal') }}:\n name: $[replace(replace(eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'), True, 'NetCore1ESPool-Svc-Internal'), False, 'NetCore1ESPool-Internal')]\n demands: ImageOverride -equals Build.Ubuntu.2204.Amd64\n ${{ if ne(parameters.platform.pool, '') }}:\n pool: ${{ parameters.platform.pool }}\n\n workspace:\n clean: all\n\n steps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ if eq(parameters.enableInternalSources, true) }}:\n - template: /eng/common/core-templates/steps/enable-internal-sources.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n - template: /eng/common/core-templates/steps/enable-internal-runtimes.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n - template: /eng/common/core-templates/steps/source-build.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n platform: ${{ parameters.platform }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\job\source-build.yml | source-build.yml | YAML | 5,100 | 0.95 | 0.180851 | 0.421687 | awesome-app | 162 | 2024-08-05T19:59:30.921030 | GPL-3.0 | false | 61966e84629ff18049da91bad3a5549c |
parameters:\n runAsPublic: false\n sourceIndexBuildCommand: powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -ci"\n preSteps: []\n binlogPath: artifacts/log/Debug/Build.binlog\n condition: ''\n dependsOn: ''\n pool: ''\n is1ESPipeline: ''\n\njobs:\n- job: SourceIndexStage1\n dependsOn: ${{ parameters.dependsOn }}\n condition: ${{ parameters.condition }}\n variables:\n - name: BinlogPath\n value: ${{ parameters.binlogPath }}\n - template: /eng/common/core-templates/variables/pool-providers.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n ${{ if ne(parameters.pool, '') }}:\n pool: ${{ parameters.pool }}\n ${{ if eq(parameters.pool, '') }}:\n pool:\n ${{ if eq(variables['System.TeamProject'], 'public') }}:\n name: $(DncEngPublicBuildPool)\n image: windows.vs2022.amd64.open\n ${{ if eq(variables['System.TeamProject'], 'internal') }}:\n name: $(DncEngInternalBuildPool)\n image: windows.vs2022.amd64\n\n steps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ each preStep in parameters.preSteps }}:\n - ${{ preStep }}\n - script: ${{ parameters.sourceIndexBuildCommand }}\n displayName: Build Repository\n\n - template: /eng/common/core-templates/steps/source-index-stage1-publish.yml\n parameters:\n binLogPath: ${{ parameters.binLogPath }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\job\source-index-stage1.yml | source-index-stage1.yml | YAML | 1,538 | 0.7 | 0.116279 | 0 | node-utils | 275 | 2025-04-01T08:45:15.400224 | Apache-2.0 | false | a43af1f566fb242b144d1ef8adbd9b1c |
parameters:\n # See schema documentation in /Documentation/AzureDevOps/TemplateSchema.md\n continueOnError: false\n # Required: A collection of jobs to run - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job\n jobs: []\n # Optional: if specified, restore and use this version of Guardian instead of the default.\n overrideGuardianVersion: ''\n is1ESPipeline: ''\n\njobs:\n- template: /eng/common/core-templates/jobs/jobs.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n enableMicrobuild: false\n enablePublishBuildArtifacts: false\n enablePublishTestResults: false\n enablePublishBuildAssets: false\n enableTelemetry: true\n\n variables:\n - group: Publish-Build-Assets\n # The Guardian version specified in 'eng/common/sdl/packages.config'. This value must be kept in\n # sync with the packages.config file.\n - name: DefaultGuardianVersion\n value: 0.109.0\n - name: GuardianPackagesConfigFile\n value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config\n - name: GuardianVersion\n value: ${{ coalesce(parameters.overrideGuardianVersion, '$(DefaultGuardianVersion)') }}\n \n jobs: ${{ parameters.jobs }}\n \n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\jobs\codeql-build.yml | codeql-build.yml | YAML | 1,239 | 0.8 | 0.03125 | 0.178571 | python-kit | 785 | 2024-04-11T16:15:40.752382 | MIT | false | b6cf98a749b555847cb1f1cc08db7b60 |
parameters:\n # See schema documentation in /Documentation/AzureDevOps/TemplateSchema.md\n continueOnError: false\n\n # Optional: Include PublishBuildArtifacts task\n enablePublishBuildArtifacts: false\n\n # Optional: Enable running the source-build jobs to build repo from source\n enableSourceBuild: false\n\n # Optional: Parameters for source-build template.\n # See /eng/common/core-templates/jobs/source-build.yml for options\n sourceBuildParameters: []\n\n graphFileGeneration:\n # Optional: Enable generating the graph files at the end of the build\n enabled: false\n # Optional: Include toolset dependencies in the generated graph files\n includeToolset: false\n \n # Required: A collection of jobs to run - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job\n jobs: []\n\n # Optional: Override automatically derived dependsOn value for "publish build assets" job\n publishBuildAssetsDependsOn: ''\n\n # Optional: Publish the assets as soon as the publish to BAR stage is complete, rather doing so in a separate stage.\n publishAssetsImmediately: false\n\n # Optional: 🌤️ or not the build has assets it wants to publish to BAR\n isAssetlessBuild: false\n\n # Optional: If using publishAssetsImmediately and additional parameters are needed, can be used to send along additional parameters (normally sent to post-build.yml)\n artifactsPublishingAdditionalParameters: ''\n signingValidationAdditionalParameters: ''\n\n # Optional: should run as a public build even in the internal project\n # if 'true', the build won't run any of the internal only steps, even if it is running in non-public projects.\n runAsPublic: false\n\n enableSourceIndex: false\n sourceIndexParams: {}\n\n artifacts: {}\n is1ESPipeline: ''\n\n# Internal resources (telemetry, microbuild) can only be accessed from non-public projects,\n# and some (Microbuild) should only be applied to non-PR cases for internal builds.\n\njobs:\n- ${{ each job in parameters.jobs }}:\n - ${{ if eq(parameters.is1ESPipeline, 'true') }}:\n - template: /eng/common/templates-official/job/job.yml\n parameters: \n # pass along parameters\n ${{ each parameter in parameters }}:\n ${{ if ne(parameter.key, 'jobs') }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n\n # pass along job properties\n ${{ each property in job }}:\n ${{ if ne(property.key, 'job') }}:\n ${{ property.key }}: ${{ property.value }}\n\n name: ${{ job.job }}\n\n - ${{ else }}:\n - template: /eng/common/templates/job/job.yml\n parameters: \n # pass along parameters\n ${{ each parameter in parameters }}:\n ${{ if ne(parameter.key, 'jobs') }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n\n # pass along job properties\n ${{ each property in job }}:\n ${{ if ne(property.key, 'job') }}:\n ${{ property.key }}: ${{ property.value }}\n\n name: ${{ job.job }}\n\n- ${{ if eq(parameters.enableSourceBuild, true) }}:\n - template: /eng/common/core-templates/jobs/source-build.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n allCompletedJobId: Source_Build_Complete\n ${{ each parameter in parameters.sourceBuildParameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n\n- ${{ if eq(parameters.enableSourceIndex, 'true') }}:\n - template: ../job/source-index-stage1.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n runAsPublic: ${{ parameters.runAsPublic }}\n ${{ each parameter in parameters.sourceIndexParams }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n\n- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - ${{ if or(eq(parameters.enablePublishBuildAssets, true), eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}:\n - template: ../job/publish-build-assets.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n continueOnError: ${{ parameters.continueOnError }}\n dependsOn:\n - ${{ if ne(parameters.publishBuildAssetsDependsOn, '') }}:\n - ${{ each job in parameters.publishBuildAssetsDependsOn }}:\n - ${{ job.job }}\n - ${{ if eq(parameters.publishBuildAssetsDependsOn, '') }}:\n - ${{ each job in parameters.jobs }}:\n - ${{ job.job }}\n - ${{ if eq(parameters.enableSourceBuild, true) }}:\n - Source_Build_Complete\n\n runAsPublic: ${{ parameters.runAsPublic }}\n publishAssetsImmediately: ${{ parameters.publishAssetsImmediately }}\n isAssetlessBuild: ${{ parameters.isAssetlessBuild }}\n enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}\n artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}\n signingValidationAdditionalParameters: ${{ parameters.signingValidationAdditionalParameters }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\jobs\jobs.yml | jobs.yml | YAML | 5,083 | 0.8 | 0.151261 | 0.208333 | python-kit | 925 | 2025-04-27T19:03:10.568624 | BSD-3-Clause | false | 23eb85ccff25c7b928e745858f3428bc |
parameters:\n # This template adds arcade-powered source-build to CI. A job is created for each platform, as\n # well as an optional server job that completes when all platform jobs complete.\n\n # The name of the "join" job for all source-build platforms. If set to empty string, the job is\n # not included. Existing repo pipelines can use this job depend on all source-build jobs\n # completing without maintaining a separate list of every single job ID: just depend on this one\n # server job. By default, not included. Recommended name if used: 'Source_Build_Complete'.\n allCompletedJobId: ''\n\n # See /eng/common/core-templates/job/source-build.yml\n jobNamePrefix: 'Source_Build'\n\n # This is the default platform provided by Arcade, intended for use by a managed-only repo.\n defaultManagedPlatform:\n name: 'Managed'\n container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9'\n\n # Defines the platforms on which to run build jobs. One job is created for each platform, and the\n # object in this array is sent to the job template as 'platform'. If no platforms are specified,\n # one job runs on 'defaultManagedPlatform'.\n platforms: []\n\n is1ESPipeline: ''\n\n # If set to true and running on a non-public project,\n # Internal nuget and blob storage locations will be enabled.\n # This is not enabled by default because many repositories do not need internal sources\n # and do not need to have the required service connections approved in the pipeline.\n enableInternalSources: false\n\njobs:\n\n- ${{ if ne(parameters.allCompletedJobId, '') }}:\n - job: ${{ parameters.allCompletedJobId }}\n displayName: Source-Build Complete\n pool: server\n dependsOn:\n - ${{ each platform in parameters.platforms }}:\n - ${{ parameters.jobNamePrefix }}_${{ platform.name }}\n - ${{ if eq(length(parameters.platforms), 0) }}:\n - ${{ parameters.jobNamePrefix }}_${{ parameters.defaultManagedPlatform.name }}\n\n- ${{ each platform in parameters.platforms }}:\n - template: /eng/common/core-templates/job/source-build.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n jobNamePrefix: ${{ parameters.jobNamePrefix }}\n platform: ${{ platform }}\n enableInternalSources: ${{ parameters.enableInternalSources }}\n\n- ${{ if eq(length(parameters.platforms), 0) }}:\n - template: /eng/common/core-templates/job/source-build.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n jobNamePrefix: ${{ parameters.jobNamePrefix }}\n platform: ${{ parameters.defaultManagedPlatform }}\n enableInternalSources: ${{ parameters.enableInternalSources }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\jobs\source-build.yml | source-build.yml | YAML | 2,635 | 0.95 | 0.137931 | 0.3125 | node-utils | 442 | 2025-04-18T22:27:06.494839 | BSD-3-Clause | false | 9c96bdf99d1f3a016793532bcaf1cb89 |
variables:\n - group: Publish-Build-Assets\n\n # Whether the build is internal or not\n - name: IsInternalBuild\n value: ${{ and(ne(variables['System.TeamProject'], 'public'), contains(variables['Build.SourceBranch'], 'internal')) }}\n\n # Default Maestro++ API Endpoint and API Version\n - name: MaestroApiEndPoint\n value: "https://maestro.dot.net"\n - name: MaestroApiVersion\n value: "2020-02-20"\n\n - name: SourceLinkCLIVersion\n value: 3.0.0\n - name: SymbolToolVersion\n value: 1.0.1\n - name: BinlogToolVersion\n value: 1.0.11\n\n - name: runCodesignValidationInjection\n value: false\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\post-build\common-variables.yml | common-variables.yml | YAML | 604 | 0.8 | 0 | 0.111111 | python-kit | 134 | 2025-05-06T02:04:50.640441 | BSD-3-Clause | false | 8b9bb496920dd1aae684dc79d183e278 |
parameters:\n # Which publishing infra should be used. THIS SHOULD MATCH THE VERSION ON THE BUILD MANIFEST.\n # Publishing V1 is no longer supported\n # Publishing V2 is no longer supported\n # Publishing V3 is the default\n - name: publishingInfraVersion\n displayName: Which version of publishing should be used to promote the build definition?\n type: number\n default: 3\n values:\n - 3\n\n - name: BARBuildId\n displayName: BAR Build Id\n type: number\n default: 0\n\n - name: PromoteToChannelIds\n displayName: Channel to promote BARBuildId to\n type: string\n default: ''\n\n - name: enableSourceLinkValidation\n displayName: Enable SourceLink validation\n type: boolean\n default: false\n\n - name: enableSigningValidation\n displayName: Enable signing validation\n type: boolean\n default: true\n\n - name: enableSymbolValidation\n displayName: Enable symbol validation\n type: boolean\n default: false\n\n - name: enableNugetValidation\n displayName: Enable NuGet validation\n type: boolean\n default: true\n \n - name: publishInstallersAndChecksums\n displayName: Publish installers and checksums\n type: boolean\n default: true\n \n - name: requireDefaultChannels\n displayName: Fail the build if there are no default channel(s) registrations for the current build\n type: boolean\n default: false\n\n - name: SDLValidationParameters\n type: object\n default:\n enable: false\n publishGdn: false\n continueOnError: false\n params: ''\n artifactNames: ''\n downloadArtifacts: true\n\n - name: isAssetlessBuild\n type: boolean\n displayName: Is Assetless Build\n default: false\n\n # These parameters let the user customize the call to sdk-task.ps1 for publishing\n # symbols & general artifacts as well as for signing validation\n - name: symbolPublishingAdditionalParameters\n displayName: Symbol publishing additional parameters\n type: string\n default: ''\n\n - name: artifactsPublishingAdditionalParameters\n displayName: Artifact publishing additional parameters\n type: string\n default: ''\n\n - name: signingValidationAdditionalParameters\n displayName: Signing validation additional parameters\n type: string\n default: ''\n\n # Which stages should finish execution before post-build stages start\n - name: validateDependsOn\n type: object\n default:\n - build\n\n - name: publishDependsOn\n type: object\n default:\n - Validate\n\n # Optional: Call asset publishing rather than running in a separate stage\n - name: publishAssetsImmediately\n type: boolean\n default: false\n\n - name: is1ESPipeline\n type: boolean\n default: false\n\nstages:\n- ${{ if or(eq( parameters.enableNugetValidation, 'true'), eq(parameters.enableSigningValidation, 'true'), eq(parameters.enableSourceLinkValidation, 'true'), eq(parameters.SDLValidationParameters.enable, 'true')) }}:\n - stage: Validate\n dependsOn: ${{ parameters.validateDependsOn }}\n displayName: Validate Build Assets\n variables:\n - template: /eng/common/core-templates/post-build/common-variables.yml\n - template: /eng/common/core-templates/variables/pool-providers.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n jobs:\n - job:\n displayName: NuGet Validation\n condition: and(succeededOrFailed(), eq( ${{ parameters.enableNugetValidation }}, 'true'))\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ else }}:\n ${{ if eq(parameters.is1ESPipeline, true) }}:\n name: $(DncEngInternalBuildPool)\n image: windows.vs2022.amd64\n os: windows\n ${{ else }}:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals windows.vs2022.amd64\n\n steps:\n - template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n BARBuildId: ${{ parameters.BARBuildId }}\n PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n - task: DownloadBuildArtifacts@0\n displayName: Download Package Artifacts\n inputs:\n buildType: specific\n buildVersionToDownload: specific\n project: $(AzDOProjectName)\n pipeline: $(AzDOPipelineId)\n buildId: $(AzDOBuildId)\n artifactName: PackageArtifacts\n checkDownloadedFiles: true\n\n - task: PowerShell@2\n displayName: Validate\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1\n arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/\n\n - job:\n displayName: Signing Validation\n condition: and( eq( ${{ parameters.enableSigningValidation }}, 'true'), ne( variables['PostBuildSign'], 'true'))\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ else }}:\n ${{ if eq(parameters.is1ESPipeline, true) }}: \n name: $(DncEngInternalBuildPool)\n image: 1es-windows-2022\n os: windows\n ${{ else }}:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals windows.vs2022.amd64 \n steps:\n - template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n BARBuildId: ${{ parameters.BARBuildId }}\n PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n - task: DownloadBuildArtifacts@0\n displayName: Download Package Artifacts\n inputs:\n buildType: specific\n buildVersionToDownload: specific\n project: $(AzDOProjectName)\n pipeline: $(AzDOPipelineId)\n buildId: $(AzDOBuildId)\n artifactName: PackageArtifacts\n checkDownloadedFiles: true\n itemPattern: |\n **\n !**/Microsoft.SourceBuild.Intermediate.*.nupkg\n\n # This is necessary whenever we want to publish/restore to an AzDO private feed\n # Since sdk-task.ps1 tries to restore packages we need to do this authentication here\n # otherwise it'll complain about accessing a private feed.\n - task: NuGetAuthenticate@1\n displayName: 'Authenticate to AzDO Feeds'\n\n # Signing validation will optionally work with the buildmanifest file which is downloaded from\n # Azure DevOps above.\n - task: PowerShell@2\n displayName: Validate\n inputs:\n filePath: eng\common\sdk-task.ps1\n arguments: -task SigningValidation -restore -msbuildEngine vs\n /p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'\n /p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'\n ${{ parameters.signingValidationAdditionalParameters }}\n\n - template: /eng/common/core-templates/steps/publish-logs.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n StageLabel: 'Validation'\n JobLabel: 'Signing'\n BinlogToolVersion: $(BinlogToolVersion)\n\n - job:\n displayName: SourceLink Validation\n condition: eq( ${{ parameters.enableSourceLinkValidation }}, 'true')\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ else }}:\n ${{ if eq(parameters.is1ESPipeline, true) }}: \n name: $(DncEngInternalBuildPool)\n image: 1es-windows-2022\n os: windows\n ${{ else }}:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals windows.vs2022.amd64 \n steps:\n - template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n BARBuildId: ${{ parameters.BARBuildId }}\n PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n - task: DownloadBuildArtifacts@0\n displayName: Download Blob Artifacts\n inputs:\n buildType: specific\n buildVersionToDownload: specific\n project: $(AzDOProjectName)\n pipeline: $(AzDOPipelineId)\n buildId: $(AzDOBuildId)\n artifactName: BlobArtifacts\n checkDownloadedFiles: true\n\n - task: PowerShell@2\n displayName: Validate\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1\n arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/ \n -ExtractPath $(Agent.BuildDirectory)/Extract/ \n -GHRepoName $(Build.Repository.Name) \n -GHCommit $(Build.SourceVersion)\n -SourcelinkCliVersion $(SourceLinkCLIVersion)\n continueOnError: true\n\n- ${{ if ne(parameters.publishAssetsImmediately, 'true') }}:\n - stage: publish_using_darc\n ${{ if or(eq(parameters.enableNugetValidation, 'true'), eq(parameters.enableSigningValidation, 'true'), eq(parameters.enableSourceLinkValidation, 'true'), eq(parameters.SDLValidationParameters.enable, 'true')) }}:\n dependsOn: ${{ parameters.publishDependsOn }}\n ${{ else }}:\n dependsOn: ${{ parameters.validateDependsOn }}\n displayName: Publish using Darc\n variables:\n - template: /eng/common/core-templates/post-build/common-variables.yml\n - template: /eng/common/core-templates/variables/pool-providers.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n jobs:\n - job:\n displayName: Publish Using Darc\n timeoutInMinutes: 120\n pool:\n # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)\n ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:\n name: AzurePipelines-EO\n image: 1ESPT-Windows2022\n demands: Cmd\n os: windows\n # If it's not devdiv, it's dnceng\n ${{ else }}:\n ${{ if eq(parameters.is1ESPipeline, true) }}: \n name: NetCore1ESPool-Publishing-Internal\n image: windows.vs2019.amd64\n os: windows\n ${{ else }}:\n name: NetCore1ESPool-Publishing-Internal\n demands: ImageOverride -equals windows.vs2019.amd64 \n steps:\n - template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n BARBuildId: ${{ parameters.BARBuildId }}\n PromoteToChannelIds: ${{ parameters.PromoteToChannelIds }}\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n\n - task: NuGetAuthenticate@1\n\n - task: AzureCLI@2\n displayName: Publish Using Darc\n inputs:\n azureSubscription: "Darc: Maestro Production"\n scriptType: ps\n scriptLocation: scriptPath\n scriptPath: $(Build.SourcesDirectory)/eng/common/post-build/publish-using-darc.ps1\n arguments: >\n -BuildId $(BARBuildId)\n -PublishingInfraVersion ${{ parameters.publishingInfraVersion }}\n -AzdoToken '$(System.AccessToken)'\n -WaitPublishingFinish true\n -RequireDefaultChannels ${{ parameters.requireDefaultChannels }}\n -ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'\n -SymbolPublishingAdditionalParameters '${{ parameters.symbolPublishingAdditionalParameters }}'\n -SkipAssetsPublishing '${{ parameters.isAssetlessBuild }}'\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\post-build\post-build.yml | post-build.yml | YAML | 12,574 | 0.95 | 0.045732 | 0.074324 | react-lib | 279 | 2024-07-16T19:47:05.074414 | MIT | false | f91a35755d5ba27155a54a2ddb9b5afe |
parameters:\n BARBuildId: ''\n PromoteToChannelIds: ''\n is1ESPipeline: ''\n\nsteps:\n - ${{ if eq(parameters.is1ESPipeline, '') }}:\n - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error\n\n - ${{ if eq(coalesce(parameters.PromoteToChannelIds, 0), 0) }}:\n - task: DownloadBuildArtifacts@0\n displayName: Download Release Configs\n inputs:\n buildType: current\n artifactName: ReleaseConfigs\n checkDownloadedFiles: true\n\n - task: AzureCLI@2\n name: setReleaseVars\n displayName: Set Release Configs Vars\n inputs:\n azureSubscription: "Darc: Maestro Production"\n scriptType: pscore\n scriptLocation: inlineScript\n inlineScript: |\n try {\n if (!$Env:PromoteToMaestroChannels -or $Env:PromoteToMaestroChannels.Trim() -eq '') {\n $Content = Get-Content $(Build.StagingDirectory)/ReleaseConfigs/ReleaseConfigs.txt\n\n $BarId = $Content | Select -Index 0\n $Channels = $Content | Select -Index 1\n $IsStableBuild = $Content | Select -Index 2\n\n $AzureDevOpsProject = $Env:System_TeamProject\n $AzureDevOpsBuildDefinitionId = $Env:System_DefinitionId\n $AzureDevOpsBuildId = $Env:Build_BuildId\n }\n else {\n . $(Build.SourcesDirectory)\eng\common\tools.ps1\n $darc = Get-Darc\n $buildInfo = & $darc get-build `\n --id ${{ parameters.BARBuildId }} `\n --extended `\n --output-format json `\n --ci `\n | convertFrom-Json\n\n $BarId = ${{ parameters.BARBuildId }}\n $Channels = $Env:PromoteToMaestroChannels -split ","\n $Channels = $Channels -join "]["\n $Channels = "[$Channels]"\n\n $IsStableBuild = $buildInfo.stable\n $AzureDevOpsProject = $buildInfo.azureDevOpsProject\n $AzureDevOpsBuildDefinitionId = $buildInfo.azureDevOpsBuildDefinitionId\n $AzureDevOpsBuildId = $buildInfo.azureDevOpsBuildId\n }\n\n Write-Host "##vso[task.setvariable variable=BARBuildId]$BarId"\n Write-Host "##vso[task.setvariable variable=TargetChannels]$Channels"\n Write-Host "##vso[task.setvariable variable=IsStableBuild]$IsStableBuild"\n\n Write-Host "##vso[task.setvariable variable=AzDOProjectName]$AzureDevOpsProject"\n Write-Host "##vso[task.setvariable variable=AzDOPipelineId]$AzureDevOpsBuildDefinitionId"\n Write-Host "##vso[task.setvariable variable=AzDOBuildId]$AzureDevOpsBuildId"\n }\n catch {\n Write-Host $_\n Write-Host $_.Exception\n Write-Host $_.ScriptStackTrace\n exit 1\n }\n env:\n PromoteToMaestroChannels: ${{ parameters.PromoteToChannelIds }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\post-build\setup-maestro-vars.yml | setup-maestro-vars.yml | YAML | 2,868 | 0.8 | 0.067568 | 0 | awesome-app | 472 | 2025-04-16T21:51:43.720307 | BSD-3-Clause | false | 0099b2f442b8c6334fcba40a65c22499 |
parameters:\n # Enable cleanup tasks for MicroBuild\n enableMicrobuild: false\n # Enable cleanup tasks for MicroBuild on Mac and Linux\n # Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT'\n enableMicrobuildForMacAndLinux: false\n continueOnError: false\n\nsteps:\n - ${{ if eq(parameters.enableMicrobuild, 'true') }}:\n - task: MicroBuildCleanup@1\n displayName: Execute Microbuild cleanup tasks\n condition: and(\n always(),\n or(\n and(\n eq(variables['Agent.Os'], 'Windows_NT'),\n in(variables['_SignType'], 'real', 'test')\n ),\n and(\n ${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},\n ne(variables['Agent.Os'], 'Windows_NT'),\n eq(variables['_SignType'], 'real')\n )\n ))\n continueOnError: ${{ parameters.continueOnError }}\n env:\n TeamName: $(_TeamName)\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\cleanup-microbuild.yml | cleanup-microbuild.yml | YAML | 925 | 0.8 | 0.142857 | 0.111111 | awesome-app | 465 | 2024-06-08T21:14:44.550159 | GPL-3.0 | false | b2222299726a304c83a322ba596ce2e4 |
parameters:\n disableComponentGovernance: false\n componentGovernanceIgnoreDirectories: ''\n is1ESPipeline: false\n displayName: 'Component Detection'\n\nsteps:\n- ${{ if eq(parameters.disableComponentGovernance, 'true') }}:\n - script: echo "##vso[task.setvariable variable=skipComponentGovernanceDetection]true"\n displayName: Set skipComponentGovernanceDetection variable\n- ${{ if ne(parameters.disableComponentGovernance, 'true') }}:\n - task: ComponentGovernanceComponentDetection@0\n continueOnError: true\n displayName: ${{ parameters.displayName }}\n inputs:\n ignoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\component-governance.yml | component-governance.yml | YAML | 652 | 0.8 | 0.125 | 0 | node-utils | 526 | 2024-05-04T12:10:02.620826 | GPL-3.0 | false | 06f41b6f24d1e47fa0c51d41a968fcbe |
# Obtains internal runtime download credentials and populates the 'dotnetbuilds-internal-container-read-token-base64'\n# variable with the base64-encoded SAS token, by default\n\nparameters:\n- name: federatedServiceConnection\n type: string\n default: 'dotnetbuilds-internal-read'\n- name: outputVariableName\n type: string\n default: 'dotnetbuilds-internal-container-read-token-base64'\n- name: expiryInHours\n type: number\n default: 1\n- name: base64Encode\n type: boolean\n default: true\n- name: is1ESPipeline\n type: boolean\n default: false\n\nsteps:\n- ${{ if ne(variables['System.TeamProject'], 'public') }}:\n - template: /eng/common/core-templates/steps/get-delegation-sas.yml\n parameters:\n federatedServiceConnection: ${{ parameters.federatedServiceConnection }}\n outputVariableName: ${{ parameters.outputVariableName }}\n expiryInHours: ${{ parameters.expiryInHours }}\n base64Encode: ${{ parameters.base64Encode }}\n storageAccount: dotnetbuilds\n container: internal\n permissions: rl\n is1ESPipeline: ${{ parameters.is1ESPipeline }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\enable-internal-runtimes.yml | enable-internal-runtimes.yml | YAML | 1,075 | 0.8 | 0.032258 | 0.066667 | node-utils | 4 | 2025-02-06T15:13:53.595262 | BSD-3-Clause | false | 15820aecac21e41d8fe8ae33b7869e75 |
parameters:\n# This is the Azure federated service connection that we log into to get an access token.\n- name: nugetFederatedServiceConnection\n type: string\n default: 'dnceng-artifacts-feeds-read'\n- name: is1ESPipeline\n type: boolean\n default: false\n# Legacy parameters to allow for PAT usage\n- name: legacyCredential\n type: string\n default: ''\n\nsteps:\n- ${{ if ne(variables['System.TeamProject'], 'public') }}:\n - ${{ if ne(parameters.legacyCredential, '') }}:\n - task: PowerShell@2\n displayName: Setup Internal Feeds\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1\n arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token\n env:\n Token: ${{ parameters.legacyCredential }}\n # If running on dnceng (internal project), just use the default behavior for NuGetAuthenticate.\n # If running on DevDiv, NuGetAuthenticate is not really an option. It's scoped to a single feed, and we have many feeds that\n # may be added. Instead, we'll use the traditional approach (add cred to nuget.config), but use an account token.\n - ${{ else }}:\n - ${{ if eq(variables['System.TeamProject'], 'internal') }}:\n - task: PowerShell@2\n displayName: Setup Internal Feeds\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1\n arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config\n - ${{ else }}:\n - template: /eng/common/templates/steps/get-federated-access-token.yml\n parameters:\n federatedServiceConnection: ${{ parameters.nugetFederatedServiceConnection }}\n outputVariableName: 'dnceng-artifacts-feeds-read-access-token'\n - task: PowerShell@2\n displayName: Setup Internal Feeds\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1\n arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $(dnceng-artifacts-feeds-read-access-token)\n # This is required in certain scenarios to install the ADO credential provider.\n # It installed by default in some msbuild invocations (e.g. VS msbuild), but needs to be installed for others\n # (e.g. dotnet msbuild).\n - task: NuGetAuthenticate@1\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\enable-internal-sources.yml | enable-internal-sources.yml | YAML | 2,253 | 0.95 | 0.12766 | 0.173913 | react-lib | 379 | 2023-09-17T10:46:37.073671 | Apache-2.0 | false | 883470ba4d15bc9f92df66a9b8de2a94 |
# BuildDropPath - The root folder of the drop directory for which the manifest file will be generated.\n# PackageName - The name of the package this SBOM represents.\n# PackageVersion - The version of the package this SBOM represents. \n# ManifestDirPath - The path of the directory where the generated manifest files will be placed\n# IgnoreDirectories - Directories to ignore for SBOM generation. This will be passed through to the CG component detector.\n\nparameters:\n PackageVersion: 10.0.0\n BuildDropPath: '$(Build.SourcesDirectory)/artifacts'\n PackageName: '.NET'\n ManifestDirPath: $(Build.ArtifactStagingDirectory)/sbom\n IgnoreDirectories: ''\n sbomContinueOnError: true\n is1ESPipeline: false\n # disable publishArtifacts if some other step is publishing the artifacts (like job.yml).\n publishArtifacts: true\n\nsteps:\n- task: PowerShell@2 \n displayName: Prep for SBOM generation in (Non-linux)\n condition: or(eq(variables['Agent.Os'], 'Windows_NT'), eq(variables['Agent.Os'], 'Darwin'))\n inputs: \n filePath: ./eng/common/generate-sbom-prep.ps1\n arguments: ${{parameters.manifestDirPath}}\n\n# Chmodding is a workaround for https://github.com/dotnet/arcade/issues/8461\n- script: |\n chmod +x ./eng/common/generate-sbom-prep.sh\n ./eng/common/generate-sbom-prep.sh ${{parameters.manifestDirPath}}\n displayName: Prep for SBOM generation in (Linux)\n condition: eq(variables['Agent.Os'], 'Linux')\n continueOnError: ${{ parameters.sbomContinueOnError }}\n\n- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0\n displayName: 'Generate SBOM manifest'\n continueOnError: ${{ parameters.sbomContinueOnError }}\n inputs:\n PackageName: ${{ parameters.packageName }}\n BuildDropPath: ${{ parameters.buildDropPath }}\n PackageVersion: ${{ parameters.packageVersion }}\n ManifestDirPath: ${{ parameters.manifestDirPath }}/$(ARTIFACT_NAME)\n ${{ if ne(parameters.IgnoreDirectories, '') }}:\n AdditionalComponentDetectorArgs: '--IgnoreDirectories ${{ parameters.IgnoreDirectories }}'\n\n- ${{ if eq(parameters.publishArtifacts, 'true')}}:\n - template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish SBOM manifest\n continueOnError: ${{parameters.sbomContinueOnError}}\n targetPath: '${{ parameters.manifestDirPath }}'\n artifactName: $(ARTIFACT_NAME)\n\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\generate-sbom.yml | generate-sbom.yml | YAML | 2,469 | 0.8 | 0.148148 | 0.145833 | vue-tools | 152 | 2023-07-24T09:14:33.993855 | MIT | false | dbbac2a8f4bdded9ffb1db449628226f |
parameters:\n- name: federatedServiceConnection\n type: string\n- name: outputVariableName\n type: string\n- name: expiryInHours\n type: number\n default: 1\n- name: base64Encode\n type: boolean\n default: false\n- name: storageAccount\n type: string\n- name: container\n type: string\n- name: permissions\n type: string\n default: 'rl'\n- name: is1ESPipeline\n type: boolean\n default: false\n\nsteps:\n- task: AzureCLI@2\n displayName: 'Generate delegation SAS Token for ${{ parameters.storageAccount }}/${{ parameters.container }}'\n inputs:\n azureSubscription: ${{ parameters.federatedServiceConnection }}\n scriptType: 'pscore'\n scriptLocation: 'inlineScript'\n inlineScript: |\n # Calculate the expiration of the SAS token and convert to UTC\n $expiry = (Get-Date).AddHours(${{ parameters.expiryInHours }}).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")\n\n $sas = az storage container generate-sas --account-name ${{ parameters.storageAccount }} --name ${{ parameters.container }} --permissions ${{ parameters.permissions }} --expiry $expiry --auth-mode login --as-user -o tsv\n\n if ($LASTEXITCODE -ne 0) {\n Write-Error "Failed to generate SAS token."\n exit 1\n }\n\n if ('${{ parameters.base64Encode }}' -eq 'true') {\n $sas = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($sas))\n }\n\n Write-Host "Setting '${{ parameters.outputVariableName }}' with the access token value"\n Write-Host "##vso[task.setvariable variable=${{ parameters.outputVariableName }};issecret=true]$sas"\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\get-delegation-sas.yml | get-delegation-sas.yml | YAML | 1,561 | 0.8 | 0.065217 | 0.02439 | awesome-app | 711 | 2023-07-13T08:12:27.137605 | MIT | false | d5663dcacce1bc0f465949c2216227b3 |
parameters:\n- name: federatedServiceConnection\n type: string\n- name: outputVariableName\n type: string\n- name: is1ESPipeline\n type: boolean\n- name: stepName\n type: string\n default: 'getFederatedAccessToken'\n- name: condition\n type: string\n default: ''\n# Resource to get a token for. Common values include:\n# - '499b84ac-1321-427f-aa17-267ca6975798' for Azure DevOps\n# - 'https://storage.azure.com/' for storage\n# Defaults to Azure DevOps\n- name: resource\n type: string\n default: '499b84ac-1321-427f-aa17-267ca6975798'\n- name: isStepOutputVariable\n type: boolean\n default: false\n\nsteps:\n- task: AzureCLI@2\n displayName: 'Getting federated access token for feeds'\n name: ${{ parameters.stepName }}\n ${{ if ne(parameters.condition, '') }}:\n condition: ${{ parameters.condition }}\n inputs:\n azureSubscription: ${{ parameters.federatedServiceConnection }}\n scriptType: 'pscore'\n scriptLocation: 'inlineScript'\n inlineScript: |\n $accessToken = az account get-access-token --query accessToken --resource ${{ parameters.resource }} --output tsv\n if ($LASTEXITCODE -ne 0) {\n Write-Error "Failed to get access token for resource '${{ parameters.resource }}'"\n exit 1\n }\n Write-Host "Setting '${{ parameters.outputVariableName }}' with the access token value"\n Write-Host "##vso[task.setvariable variable=${{ parameters.outputVariableName }};issecret=true;isOutput=${{ parameters.isStepOutputVariable }}]$accessToken" | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\get-federated-access-token.yml | get-federated-access-token.yml | YAML | 1,474 | 0.8 | 0.170732 | 0.097561 | awesome-app | 92 | 2024-09-11T04:07:55.988065 | Apache-2.0 | false | bf47a20ee8f92b6d1e7c55eba3b6094b |
parameters:\n # Enable install tasks for MicroBuild\n enableMicrobuild: false\n # Enable install tasks for MicroBuild on Mac and Linux\n # Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT'\n enableMicrobuildForMacAndLinux: false\n # Location of the MicroBuild output folder\n microBuildOutputFolder: '$(Build.SourcesDirectory)'\n continueOnError: false\n\nsteps:\n - ${{ if eq(parameters.enableMicrobuild, 'true') }}:\n - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:\n # Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable\n - task: UseDotNet@2\n displayName: Install .NET 8.0 SDK for MicroBuild Plugin\n inputs:\n packageType: sdk\n version: 8.0.x\n installationPath: ${{ parameters.microBuildOutputFolder }}/.dotnet\n workingDirectory: ${{ parameters.microBuildOutputFolder }}\n condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))\n\n - task: MicroBuildSigningPlugin@4\n displayName: Install MicroBuild plugin\n inputs:\n signType: $(_SignType)\n zipSources: false\n feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json\n ${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:\n azureSubscription: 'MicroBuild Signing Task (DevDiv)'\n useEsrpCli: true\n env:\n TeamName: $(_TeamName)\n MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }}\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n continueOnError: ${{ parameters.continueOnError }}\n condition: and(\n succeeded(),\n or(\n and(\n eq(variables['Agent.Os'], 'Windows_NT'),\n in(variables['_SignType'], 'real', 'test')\n ),\n and(\n ${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }},\n ne(variables['Agent.Os'], 'Windows_NT'),\n eq(variables['_SignType'], 'real')\n )\n ))\n\n # Workaround for ESRP CLI on Linux - https://github.com/dotnet/source-build/issues/4964\n - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:\n - task: UseDotNet@2\n displayName: Install .NET 9.0 SDK for ESRP CLI Workaround\n inputs:\n packageType: sdk\n version: 9.0.x\n installationPath: ${{ parameters.microBuildOutputFolder }}/.dotnet\n workingDirectory: ${{ parameters.microBuildOutputFolder }}\n condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))\n\n - task: PowerShell@2\n displayName: Workaround for ESRP CLI on Linux\n inputs:\n targetType: 'inline'\n script: |\n Write-Host "Copying Linux Path"\n $MBSIGN_APPFOLDER = '$(MBSIGN_APPFOLDER)'\n $MBSIGN_APPFOLDER = ($MBSIGN_APPFOLDER -replace '/build', '')\n\n $versionRegex = '\d+\.\d+\.\d+'\n $package = Get-ChildItem -Path $MBSIGN_APPFOLDER -Directory |\n Where-Object { $_.Name -match $versionRegex }\n\n if ($package.Count -ne 1) {\n Write-Host "There should be exactly one matching subfolder, but found $($package.Count)."\n exit 1\n }\n\n $MBSIGN_APPFOLDER = $package[0].FullName + '/build'\n $MBSIGN_APPFOLDER | Write-Host\n $SignConfigPath = $MBSIGN_APPFOLDER + '/signconfig.xml'\n Copy-Item -Path "$(MBSIGN_APPFOLDER)/signconfig.xml" -Destination $SignConfigPath -Force\n condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\install-microbuild.yml | install-microbuild.yml | YAML | 3,675 | 0.8 | 0.141176 | 0.076923 | vue-tools | 381 | 2025-01-25T18:31:27.270118 | Apache-2.0 | false | cc8686c0f05a4de1e4110c8ee00fc2dd |
parameters:\n- name: is1ESPipeline\n type: boolean\n default: false\n- name: args\n type: object\n default: {}\nsteps:\n- ${{ if ne(parameters.is1ESPipeline, true) }}:\n - template: /eng/common/templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n ${{ each parameter in parameters.args }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n- ${{ else }}:\n - template: /eng/common/templates-official/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n ${{ each parameter in parameters.args }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\publish-build-artifacts.yml | publish-build-artifacts.yml | YAML | 667 | 0.7 | 0.052632 | 0 | react-lib | 370 | 2025-03-27T19:48:38.895223 | BSD-3-Clause | false | feba684771f230e02a2e3328b94305c9 |
parameters:\n StageLabel: ''\n JobLabel: ''\n CustomSensitiveDataList: ''\n # A default - in case value from eng/common/core-templates/post-build/common-variables.yml is not passed\n BinlogToolVersion: '1.0.11'\n is1ESPipeline: false\n\nsteps:\n- task: Powershell@2\n displayName: Prepare Binlogs to Upload\n inputs:\n targetType: inline\n script: |\n New-Item -ItemType Directory $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/\n Move-Item -Path $(Build.SourcesDirectory)/artifacts/log/Debug/* $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/\n continueOnError: true\n condition: always()\n \n- task: PowerShell@2\n displayName: Redact Logs\n inputs:\n filePath: $(Build.SourcesDirectory)/eng/common/post-build/redact-logs.ps1\n # For now this needs to have explicit list of all sensitive data. Taken from eng/publishing/v3/publish.yml\n # Sensitive data can as well be added to $(Build.SourcesDirectory)/eng/BinlogSecretsRedactionFile.txt'\n # If the file exists - sensitive data for redaction will be sourced from it\n # (single entry per line, lines starting with '# ' are considered comments and skipped)\n arguments: -InputPath '$(Build.SourcesDirectory)/PostBuildLogs' \n -BinlogToolVersion ${{parameters.BinlogToolVersion}}\n -TokensFilePath '$(Build.SourcesDirectory)/eng/BinlogSecretsRedactionFile.txt'\n '$(publishing-dnceng-devdiv-code-r-build-re)'\n '$(MaestroAccessToken)'\n '$(dn-bot-all-orgs-artifact-feeds-rw)'\n '$(akams-client-id)'\n '$(microsoft-symbol-server-pat)'\n '$(symweb-symbol-server-pat)'\n '$(dnceng-symbol-server-pat)'\n '$(dn-bot-all-orgs-build-rw-code-rw)'\n '$(System.AccessToken)'\n ${{parameters.CustomSensitiveDataList}}\n continueOnError: true\n condition: always()\n\n- task: CopyFiles@2\n displayName: Gather post build logs\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)/PostBuildLogs'\n Contents: '**'\n TargetFolder: '$(Build.ArtifactStagingDirectory)/PostBuildLogs'\n condition: always()\n\n- template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish Logs\n pathToPublish: '$(Build.ArtifactStagingDirectory)/PostBuildLogs'\n publishLocation: Container\n artifactName: PostBuildLogs\n continueOnError: true\n condition: always()\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\publish-logs.yml | publish-logs.yml | YAML | 2,476 | 0.8 | 0.016393 | 0.087719 | react-lib | 791 | 2025-06-16T04:13:22.492069 | BSD-3-Clause | false | 6413c0bf1115836dd70fdf18e8b51aae |
parameters:\n- name: is1ESPipeline\n type: boolean\n default: false\n\n- name: args\n type: object\n default: {} \n\nsteps:\n- ${{ if ne(parameters.is1ESPipeline, true) }}:\n - template: /eng/common/templates/steps/publish-pipeline-artifacts.yml\n parameters:\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n- ${{ else }}:\n - template: /eng/common/templates-official/steps/publish-pipeline-artifacts.yml\n parameters:\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\publish-pipeline-artifacts.yml | publish-pipeline-artifacts.yml | YAML | 562 | 0.7 | 0.05 | 0 | node-utils | 519 | 2025-02-20T01:20:32.573010 | GPL-3.0 | false | 570b148d4f7f1bff4bc28cb7813bb7e4 |
parameters:\n # Optional azure devops PAT with build execute permissions for the build's organization,\n # only needed if the build that should be retained ran on a different organization than \n # the pipeline where this template is executing from\n Token: ''\n # Optional BuildId to retain, defaults to the current running build\n BuildId: ''\n # Azure devops Organization URI for the build in the https://dev.azure.com/<organization> format.\n # Defaults to the organization the current pipeline is running on\n AzdoOrgUri: '$(System.CollectionUri)'\n # Azure devops project for the build. Defaults to the project the current pipeline is running on\n AzdoProject: '$(System.TeamProject)'\n\nsteps:\n - task: powershell@2\n inputs:\n targetType: 'filePath'\n filePath: eng/common/retain-build.ps1\n pwsh: true\n arguments: >\n -AzdoOrgUri: ${{parameters.AzdoOrgUri}}\n -AzdoProject ${{parameters.AzdoProject}}\n -Token ${{coalesce(parameters.Token, '$env:SYSTEM_ACCESSTOKEN') }}\n -BuildId ${{coalesce(parameters.BuildId, '$env:BUILD_ID')}}\n displayName: Enable permanent build retention\n env:\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n BUILD_ID: $(Build.BuildId) | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\retain-build.yml | retain-build.yml | YAML | 1,222 | 0.8 | 0.148148 | 0.259259 | vue-tools | 50 | 2023-11-07T19:00:53.962828 | Apache-2.0 | false | c72408867a31f8ab09d692e0c2221a29 |
# Please remember to update the documentation if you make changes to these parameters!\nparameters:\n HelixSource: 'pr/default' # required -- sources must start with pr/, official/, prodcon/, or agent/\n HelixType: 'tests/default/' # required -- Helix telemetry which identifies what type of data this is; should include "test" for clarity and must end in '/'\n HelixBuild: $(Build.BuildNumber) # required -- the build number Helix will use to identify this -- automatically set to the AzDO build number\n HelixTargetQueues: '' # required -- semicolon-delimited list of Helix queues to test on; see https://helix.dot.net/ for a list of queues\n HelixAccessToken: '' # required -- access token to make Helix API requests; should be provided by the appropriate variable group\n HelixProjectPath: 'eng/common/helixpublish.proj' # optional -- path to the project file to build relative to BUILD_SOURCESDIRECTORY\n HelixProjectArguments: '' # optional -- arguments passed to the build command\n HelixConfiguration: '' # optional -- additional property attached to a job\n HelixPreCommands: '' # optional -- commands to run before Helix work item execution\n HelixPostCommands: '' # optional -- commands to run after Helix work item execution\n WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects\n WorkItemCommand: '' # optional -- a command to execute on the payload; requires WorkItemDirectory; incompatible with XUnitProjects\n WorkItemTimeout: '' # optional -- a timeout in TimeSpan.Parse-ready value (e.g. 00:02:00) for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects\n CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload\n XUnitProjects: '' # optional -- semicolon-delimited list of XUnitProjects to parse and send to Helix; requires XUnitRuntimeTargetFramework, XUnitPublishTargetFramework, XUnitRunnerVersion, and IncludeDotNetCli=true\n XUnitWorkItemTimeout: '' # optional -- the workitem timeout in seconds for all workitems created from the xUnit projects specified by XUnitProjects\n XUnitPublishTargetFramework: '' # optional -- framework to use to publish your xUnit projects\n XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner\n XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects\n IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion\n DotNetCliPackageType: '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json\n DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json\n WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."\n IsExternal: false # [DEPRECATED] -- doesn't do anything, jobs are external if HelixAccessToken is empty and Creator is set\n HelixBaseUri: 'https://helix.dot.net/' # optional -- sets the Helix API base URI (allows targeting https://helix.int-dot.net )\n Creator: '' # optional -- if the build is external, use this to specify who is sending the job\n DisplayNamePrefix: 'Run Tests' # optional -- rename the beginning of the displayName of the steps in AzDO \n condition: succeeded() # optional -- condition for step to execute; defaults to succeeded()\n continueOnError: false # optional -- determines whether to continue the build if the step errors; defaults to false\n\nsteps:\n - powershell: 'powershell "$env:BUILD_SOURCESDIRECTORY\eng\common\msbuild.ps1 $env:BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }} /restore /p:TreatWarningsAsErrors=false ${{ parameters.HelixProjectArguments }} /t:Test /bl:$env:BUILD_SOURCESDIRECTORY\artifacts\log\$env:BuildConfig\SendToHelix.binlog"'\n displayName: ${{ parameters.DisplayNamePrefix }} (Windows)\n env:\n BuildConfig: $(_BuildConfig)\n HelixSource: ${{ parameters.HelixSource }}\n HelixType: ${{ parameters.HelixType }}\n HelixBuild: ${{ parameters.HelixBuild }}\n HelixConfiguration: ${{ parameters.HelixConfiguration }}\n HelixTargetQueues: ${{ parameters.HelixTargetQueues }}\n HelixAccessToken: ${{ parameters.HelixAccessToken }}\n HelixPreCommands: ${{ parameters.HelixPreCommands }}\n HelixPostCommands: ${{ parameters.HelixPostCommands }}\n WorkItemDirectory: ${{ parameters.WorkItemDirectory }}\n WorkItemCommand: ${{ parameters.WorkItemCommand }}\n WorkItemTimeout: ${{ parameters.WorkItemTimeout }}\n CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}\n XUnitProjects: ${{ parameters.XUnitProjects }}\n XUnitWorkItemTimeout: ${{ parameters.XUnitWorkItemTimeout }}\n XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}\n XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}\n XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}\n IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}\n DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}\n DotNetCliVersion: ${{ parameters.DotNetCliVersion }}\n WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}\n HelixBaseUri: ${{ parameters.HelixBaseUri }}\n Creator: ${{ parameters.Creator }}\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n condition: and(${{ parameters.condition }}, eq(variables['Agent.Os'], 'Windows_NT'))\n continueOnError: ${{ parameters.continueOnError }}\n - script: $BUILD_SOURCESDIRECTORY/eng/common/msbuild.sh $BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }} /restore /p:TreatWarningsAsErrors=false ${{ parameters.HelixProjectArguments }} /t:Test /bl:$BUILD_SOURCESDIRECTORY/artifacts/log/$BuildConfig/SendToHelix.binlog\n displayName: ${{ parameters.DisplayNamePrefix }} (Unix)\n env:\n BuildConfig: $(_BuildConfig)\n HelixSource: ${{ parameters.HelixSource }}\n HelixType: ${{ parameters.HelixType }}\n HelixBuild: ${{ parameters.HelixBuild }}\n HelixConfiguration: ${{ parameters.HelixConfiguration }}\n HelixTargetQueues: ${{ parameters.HelixTargetQueues }}\n HelixAccessToken: ${{ parameters.HelixAccessToken }}\n HelixPreCommands: ${{ parameters.HelixPreCommands }}\n HelixPostCommands: ${{ parameters.HelixPostCommands }}\n WorkItemDirectory: ${{ parameters.WorkItemDirectory }}\n WorkItemCommand: ${{ parameters.WorkItemCommand }}\n WorkItemTimeout: ${{ parameters.WorkItemTimeout }}\n CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}\n XUnitProjects: ${{ parameters.XUnitProjects }}\n XUnitWorkItemTimeout: ${{ parameters.XUnitWorkItemTimeout }}\n XUnitPublishTargetFramework: ${{ parameters.XUnitPublishTargetFramework }}\n XUnitRuntimeTargetFramework: ${{ parameters.XUnitRuntimeTargetFramework }}\n XUnitRunnerVersion: ${{ parameters.XUnitRunnerVersion }}\n IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}\n DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}\n DotNetCliVersion: ${{ parameters.DotNetCliVersion }}\n WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}\n HelixBaseUri: ${{ parameters.HelixBaseUri }}\n Creator: ${{ parameters.Creator }}\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n condition: and(${{ parameters.condition }}, ne(variables['Agent.Os'], 'Windows_NT'))\n continueOnError: ${{ parameters.continueOnError }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\send-to-helix.yml | send-to-helix.yml | YAML | 8,338 | 0.95 | 0.129032 | 0.01087 | vue-tools | 208 | 2024-10-05T01:46:38.814018 | MIT | false | 03685e4405364b8381a998eba854d1ac |
parameters:\n # This template adds arcade-powered source-build to CI.\n\n # This is a 'steps' template, and is intended for advanced scenarios where the existing build\n # infra has a careful build methodology that must be followed. For example, a repo\n # (dotnet/runtime) might choose to clone the GitHub repo only once and store it as a pipeline\n # artifact for all subsequent jobs to use, to reduce dependence on a strong network connection to\n # GitHub. Using this steps template leaves room for that infra to be included.\n\n # Defines the platform on which to run the steps. See 'eng/common/core-templates/job/source-build.yml'\n # for details. The entire object is described in the 'job' template for simplicity, even though\n # the usage of the properties on this object is split between the 'job' and 'steps' templates.\n platform: {}\n is1ESPipeline: false\n\nsteps:\n# Build. Keep it self-contained for simple reusability. (No source-build-specific job variables.)\n- script: |\n set -x\n df -h\n\n # If file changes are detected, set CopyWipIntoInnerSourceBuildRepo to copy the WIP changes into the inner source build repo.\n internalRestoreArgs=\n if ! git diff --quiet; then\n internalRestoreArgs='/p:CopyWipIntoInnerSourceBuildRepo=true'\n # The 'Copy WIP' feature of source build uses git stash to apply changes from the original repo.\n # This only works if there is a username/email configured, which won't be the case in most CI runs.\n git config --get user.email\n if [ $? -ne 0 ]; then\n git config user.email dn-bot@microsoft.com\n git config user.name dn-bot\n fi\n fi\n\n # If building on the internal project, the internal storage variable may be available (usually only if needed)\n # In that case, add variables to allow the download of internal runtimes if the specified versions are not found\n # in the default public locations.\n internalRuntimeDownloadArgs=\n if [ '$(dotnetbuilds-internal-container-read-token-base64)' != '$''(dotnetbuilds-internal-container-read-token-base64)' ]; then\n internalRuntimeDownloadArgs='/p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64) --runtimesourcefeed https://ci.dot.net/internal --runtimesourcefeedkey $(dotnetbuilds-internal-container-read-token-base64)'\n fi\n\n buildConfig=Release\n # Check if AzDO substitutes in a build config from a variable, and use it if so.\n if [ '$(_BuildConfig)' != '$''(_BuildConfig)' ]; then\n buildConfig='$(_BuildConfig)'\n fi\n\n officialBuildArgs=\n if [ '${{ and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}' = 'True' ]; then\n officialBuildArgs='/p:DotNetPublishUsingPipelines=true /p:OfficialBuildId=$(BUILD.BUILDNUMBER)'\n fi\n\n targetRidArgs=\n if [ '${{ parameters.platform.targetRID }}' != '' ]; then\n targetRidArgs='/p:TargetRid=${{ parameters.platform.targetRID }}'\n fi\n\n runtimeOsArgs=\n if [ '${{ parameters.platform.runtimeOS }}' != '' ]; then\n runtimeOsArgs='/p:RuntimeOS=${{ parameters.platform.runtimeOS }}'\n fi\n\n baseOsArgs=\n if [ '${{ parameters.platform.baseOS }}' != '' ]; then\n baseOsArgs='/p:BaseOS=${{ parameters.platform.baseOS }}'\n fi\n\n publishArgs=\n if [ '${{ parameters.platform.skipPublishValidation }}' != 'true' ]; then\n publishArgs='--publish'\n fi\n\n assetManifestFileName=SourceBuild_RidSpecific.xml\n if [ '${{ parameters.platform.name }}' != '' ]; then\n assetManifestFileName=SourceBuild_${{ parameters.platform.name }}.xml\n fi\n\n portableBuildArgs=\n if [ '${{ parameters.platform.portableBuild }}' != '' ]; then\n portableBuildArgs='/p:PortableBuild=${{ parameters.platform.portableBuild }}'\n fi\n\n ${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \\n --configuration $buildConfig \\n --restore --build --pack $publishArgs -bl \\n $officialBuildArgs \\n $internalRuntimeDownloadArgs \\n $internalRestoreArgs \\n $targetRidArgs \\n $runtimeOsArgs \\n $baseOsArgs \\n $portableBuildArgs \\n /p:DotNetBuildSourceOnly=true \\n /p:DotNetBuildRepo=true \\n /p:AssetManifestFileName=$assetManifestFileName\n displayName: Build\n\n# Upload build logs for diagnosis.\n- task: CopyFiles@2\n displayName: Prepare BuildLogs staging directory\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)'\n Contents: |\n **/*.log\n **/*.binlog\n artifacts/sb/prebuilt-report/**\n TargetFolder: '$(Build.StagingDirectory)/BuildLogs'\n CleanTargetFolder: true\n continueOnError: true\n condition: succeededOrFailed()\n\n- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml\n parameters:\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n args:\n displayName: Publish BuildLogs\n targetPath: '$(Build.StagingDirectory)/BuildLogs'\n artifactName: BuildLogs_SourceBuild_${{ parameters.platform.name }}_Attempt$(System.JobAttempt)\n continueOnError: true\n condition: succeededOrFailed()\n sbomEnabled: false # we don't need SBOM for logs\n\n# Manually inject component detection so that we can ignore the source build upstream cache, which contains\n# a nupkg cache of input packages (a local feed).\n# This path must match the upstream cache path in property 'CurrentRepoSourceBuiltNupkgCacheDir'\n# in src\Microsoft.DotNet.Arcade.Sdk\tools\SourceBuild\SourceBuildArcade.targets\n- template: /eng/common/core-templates/steps/component-governance.yml\n parameters:\n displayName: Component Detection (Exclude upstream cache)\n is1ESPipeline: ${{ parameters.is1ESPipeline }}\n componentGovernanceIgnoreDirectories: '$(Build.SourcesDirectory)/artifacts/sb/src/artifacts/obj/source-built-upstream-cache'\n disableComponentGovernance: ${{ eq(variables['System.TeamProject'], 'public') }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\source-build.yml | source-build.yml | YAML | 5,935 | 0.8 | 0.180451 | 0.206897 | awesome-app | 330 | 2023-12-05T21:55:49.885643 | MIT | false | 8d6fe2e8e533ad7031e5c8133ea5252c |
parameters:\n sourceIndexUploadPackageVersion: 2.0.0-20240522.1\n sourceIndexProcessBinlogPackageVersion: 1.0.1-20240522.1\n sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json\n binlogPath: artifacts/log/Debug/Build.binlog\n\nsteps:\n- task: UseDotNet@2\n displayName: "Source Index: Use .NET 8 SDK"\n inputs:\n packageType: sdk\n version: 8.0.x\n installationPath: $(Agent.TempDirectory)/dotnet\n workingDirectory: $(Agent.TempDirectory)\n\n- script: |\n $(Agent.TempDirectory)/dotnet/dotnet tool install BinLogToSln --version ${{parameters.sourceIndexProcessBinlogPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools\n $(Agent.TempDirectory)/dotnet/dotnet tool install UploadIndexStage1 --version ${{parameters.sourceIndexUploadPackageVersion}} --add-source ${{parameters.SourceIndexPackageSource}} --tool-path $(Agent.TempDirectory)/.source-index/tools\n displayName: "Source Index: Download netsourceindex Tools"\n # Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk.\n workingDirectory: $(Agent.TempDirectory)\n\n- script: $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i ${{parameters.BinlogPath}} -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output\n displayName: "Source Index: Process Binlog into indexable sln"\n\n- ${{ if and(ne(parameters.runAsPublic, 'true'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:\n - task: AzureCLI@2\n displayName: "Source Index: Upload Source Index stage1 artifacts to Azure"\n inputs:\n azureSubscription: 'SourceDotNet Stage1 Publish'\n addSpnToEnvironment: true\n scriptType: 'ps'\n scriptLocation: 'inlineScript'\n inlineScript: |\n $(Agent.TempDirectory)/.source-index/tools/UploadIndexStage1 -i .source-index/stage1output -n $(Build.Repository.Name) -s netsourceindexstage1 -b stage1\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\steps\source-index-stage1-publish.yml | source-index-stage1-publish.yml | YAML | 2,051 | 0.8 | 0.057143 | 0.032258 | react-lib | 21 | 2023-08-09T19:34:22.832217 | BSD-3-Clause | false | 41b5bd5feaf669f805503cc12839fcf1 |
parameters:\n is1ESPipeline: false\n\nvariables:\n - ${{ if eq(parameters.is1ESPipeline, 'true') }}:\n - template: /eng/common/templates-official/variables/pool-providers.yml\n - ${{ else }}:\n - template: /eng/common/templates/variables/pool-providers.yml | dataset_sample\yaml\dotnet_aspnetcore\eng\common\core-templates\variables\pool-providers.yml | pool-providers.yml | YAML | 258 | 0.7 | 0.142857 | 0 | react-lib | 756 | 2023-12-01T06:51:27.110341 | Apache-2.0 | false | 793646b194eb9a9ffaae4e91c8ad6132 |
parameters: \n enablePublishBuildArtifacts: false\n disableComponentGovernance: ''\n componentGovernanceIgnoreDirectories: ''\n# Sbom related params\n enableSbom: true\n runAsPublic: false\n PackageVersion: 9.0.0\n BuildDropPath: '$(Build.SourcesDirectory)/artifacts'\n\njobs:\n- template: /eng/common/core-templates/job/job.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ if and(ne(parameter.key, 'steps'), ne(parameter.key, 'is1ESPipeline')) }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n\n steps:\n - ${{ each step in parameters.steps }}:\n - ${{ step }}\n\n componentGovernanceSteps:\n - template: /eng/common/templates/steps/component-governance.yml\n parameters:\n ${{ if eq(parameters.disableComponentGovernance, '') }}:\n ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.runAsPublic, 'false'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/dotnet/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/microsoft/'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:\n disableComponentGovernance: false\n ${{ else }}:\n disableComponentGovernance: true\n ${{ else }}:\n disableComponentGovernance: ${{ parameters.disableComponentGovernance }}\n componentGovernanceIgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}\n\n artifactPublishSteps:\n - ${{ if ne(parameters.artifacts.publish, '') }}:\n - ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:\n - template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: false\n args:\n displayName: Publish pipeline artifacts\n pathToPublish: '$(Build.ArtifactStagingDirectory)/artifacts'\n publishLocation: Container\n artifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}\n continueOnError: true\n condition: always()\n retryCountOnTaskFailure: 10 # for any logs being locked\n - ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:\n - template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml\n parameters:\n is1ESPipeline: false\n args:\n targetPath: '$(Build.ArtifactStagingDirectory)/artifacts/log'\n artifactName: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}\n displayName: 'Publish logs'\n continueOnError: true\n condition: always()\n retryCountOnTaskFailure: 10 # for any logs being locked\n sbomEnabled: false # we don't need SBOM for logs\n\n - ${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}:\n - template: /eng/common/core-templates/steps/publish-build-artifacts.yml\n parameters:\n is1ESPipeline: false\n args:\n displayName: Publish Logs\n pathToPublish: '$(Build.ArtifactStagingDirectory)/artifacts/log/$(_BuildConfig)'\n publishLocation: Container\n artifactName: ${{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)_Attempt$(System.JobAttempt)' ) }}\n continueOnError: true\n condition: always()\n\n - ${{ if eq(parameters.enableBuildRetry, 'true') }}:\n - template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml\n parameters:\n is1ESPipeline: false\n args:\n targetPath: '$(Build.SourcesDirectory)\eng\common\BuildConfiguration'\n artifactName: 'BuildConfiguration'\n displayName: 'Publish build retry configuration'\n continueOnError: true\n sbomEnabled: false # we don't need SBOM for BuildConfiguration\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\job\job.yml | job.yml | YAML | 4,179 | 0.8 | 0.142857 | 0.012987 | node-utils | 132 | 2023-09-05T17:24:32.992570 | BSD-3-Clause | false | 7fccc5e383baf728dc3b2a60758ab3f2 |
jobs:\n- template: /eng/common/core-templates/job/onelocbuild.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\job\onelocbuild.yml | onelocbuild.yml | YAML | 197 | 0.7 | 0 | 0 | react-lib | 902 | 2024-10-22T17:10:33.330127 | GPL-3.0 | false | a155825079e639d7026dbb4c77834f60 |
jobs:\n- template: /eng/common/core-templates/job/publish-build-assets.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\job\publish-build-assets.yml | publish-build-assets.yml | YAML | 206 | 0.7 | 0 | 0 | awesome-app | 627 | 2024-05-25T00:28:35.617831 | GPL-3.0 | false | 86a89d7ce1e02d800846022a7bcb4f99 |
jobs:\n- template: /eng/common/core-templates/job/source-build.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\job\source-build.yml | source-build.yml | YAML | 198 | 0.7 | 0 | 0 | vue-tools | 535 | 2024-06-26T14:46:00.859800 | MIT | false | 5ad5c584e4e87389998f7f2421e1909d |
jobs:\n- template: /eng/common/core-templates/job/source-index-stage1.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\job\source-index-stage1.yml | source-index-stage1.yml | YAML | 205 | 0.7 | 0 | 0 | python-kit | 854 | 2025-03-12T12:28:45.241367 | MIT | false | 644f492719c7aa5b72229f6a48d30ea6 |
jobs:\n- template: /eng/common/core-templates/jobs/codeql-build.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\jobs\codeql-build.yml | codeql-build.yml | YAML | 199 | 0.7 | 0 | 0 | vue-tools | 360 | 2024-08-05T23:07:12.141026 | MIT | false | 5a4641afeb1d1002bb374a73bf3097fb |
jobs:\n- template: /eng/common/core-templates/jobs/jobs.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\jobs\jobs.yml | jobs.yml | YAML | 191 | 0.7 | 0 | 0 | awesome-app | 668 | 2024-01-25T00:38:09.352788 | MIT | false | 83db1630b41e7331450dad48cd4dbb10 |
jobs:\n- template: /eng/common/core-templates/jobs/source-build.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\jobs\source-build.yml | source-build.yml | YAML | 198 | 0.7 | 0 | 0 | awesome-app | 941 | 2024-02-05T04:14:23.860195 | BSD-3-Clause | false | 8a6be417efaa478b87d4053ebd878195 |
variables:\n- template: /eng/common/core-templates/post-build/common-variables.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\post-build\common-variables.yml | common-variables.yml | YAML | 248 | 0.8 | 0 | 0.142857 | python-kit | 452 | 2023-12-22T06:47:23.537955 | Apache-2.0 | false | 909ba0a5069bc3039739ad123729e365 |
stages:\n- template: /eng/common/core-templates/post-build/post-build.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\post-build\post-build.yml | post-build.yml | YAML | 239 | 0.8 | 0 | 0.142857 | awesome-app | 588 | 2024-03-01T17:10:01.027482 | GPL-3.0 | false | 7e027e903d22bb71823eeaec48a2a687 |
steps:\n- template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\post-build\setup-maestro-vars.yml | setup-maestro-vars.yml | YAML | 246 | 0.8 | 0 | 0.142857 | react-lib | 9 | 2024-12-02T04:18:33.230298 | MIT | false | a6548cf82fe816e8d533284434a175eb |
steps:\n- template: /eng/common/core-templates/steps/component-governance.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\component-governance.yml | component-governance.yml | YAML | 209 | 0.7 | 0 | 0 | awesome-app | 492 | 2023-08-18T05:04:44.579692 | GPL-3.0 | false | cdfa75619c43225e9cf33f340bedd740 |
# Obtains internal runtime download credentials and populates the 'dotnetbuilds-internal-container-read-token-base64'\n# variable with the base64-encoded SAS token, by default\n\nsteps:\n- template: /eng/common/core-templates/steps/enable-internal-runtimes.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\enable-internal-runtimes.yml | enable-internal-runtimes.yml | YAML | 389 | 0.8 | 0 | 0.25 | node-utils | 552 | 2024-05-20T04:10:43.414026 | MIT | false | 83122e7f8536616f784ee96df8ab12ac |
steps:\n- template: /eng/common/core-templates/steps/enable-internal-sources.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\enable-internal-sources.yml | enable-internal-sources.yml | YAML | 211 | 0.7 | 0 | 0 | awesome-app | 415 | 2023-12-29T13:31:24.020718 | BSD-3-Clause | false | ce021738739931039c30356d81b9cd02 |
steps:\n- template: /eng/common/core-templates/steps/generate-sbom.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\generate-sbom.yml | generate-sbom.yml | YAML | 202 | 0.7 | 0 | 0 | awesome-app | 902 | 2024-01-15T13:34:46.780193 | Apache-2.0 | false | 01cb9e0d9a333f37615cbd14fafc51a1 |
steps:\n- template: /eng/common/core-templates/steps/get-delegation-sas.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\get-delegation-sas.yml | get-delegation-sas.yml | YAML | 207 | 0.7 | 0 | 0 | awesome-app | 930 | 2024-08-02T04:21:07.082552 | Apache-2.0 | false | 07322cf41cd26f0152a72c4a027b65d7 |
steps:\n- template: /eng/common/core-templates/steps/get-federated-access-token.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\get-federated-access-token.yml | get-federated-access-token.yml | YAML | 214 | 0.7 | 0 | 0 | react-lib | 793 | 2024-08-07T04:11:53.616032 | MIT | false | 846715f1a4d7e3a984650b5c0eb9bcd0 |
parameters:\n- name: is1ESPipeline\n type: boolean\n default: false\n\n- name: displayName\n type: string\n default: 'Publish to Build Artifact'\n\n- name: condition\n type: string\n default: succeeded()\n\n- name: artifactName\n type: string\n\n- name: pathToPublish\n type: string\n\n- name: continueOnError\n type: boolean\n default: false\n\n- name: publishLocation\n type: string\n default: 'Container'\n\n- name: retryCountOnTaskFailure\n type: string\n default: 10\n\nsteps:\n- ${{ if eq(parameters.is1ESPipeline, true) }}:\n - 'eng/common/templates cannot be referenced from a 1ES managed template': error\n- task: PublishBuildArtifacts@1\n displayName: ${{ parameters.displayName }}\n condition: ${{ parameters.condition }}\n ${{ if parameters.continueOnError }}:\n continueOnError: ${{ parameters.continueOnError }}\n inputs:\n PublishLocation: ${{ parameters.publishLocation }} \n PathtoPublish: ${{ parameters.pathToPublish }}\n ${{ if parameters.artifactName }}:\n ArtifactName: ${{ parameters.artifactName }}\n ${{ if parameters.retryCountOnTaskFailure }}:\n retryCountOnTaskFailure: ${{ parameters.retryCountOnTaskFailure }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\publish-build-artifacts.yml | publish-build-artifacts.yml | YAML | 1,140 | 0.7 | 0.086957 | 0 | python-kit | 856 | 2025-04-19T13:32:02.302350 | GPL-3.0 | false | 24d82629806c9eb503601f3c1ffb6b80 |
steps:\n- template: /eng/common/core-templates/steps/publish-logs.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\publish-logs.yml | publish-logs.yml | YAML | 201 | 0.7 | 0 | 0 | awesome-app | 293 | 2024-04-13T12:05:25.751162 | GPL-3.0 | false | 9d5f05497b5829492b197ede8da2db64 |
parameters:\n- name: is1ESPipeline\n type: boolean\n default: false\n\n- name: args\n type: object\n default: {}\n\nsteps:\n- ${{ if eq(parameters.is1ESPipeline, true) }}:\n - 'eng/common/templates cannot be referenced from a 1ES managed template': error\n- task: PublishPipelineArtifact@1\n displayName: ${{ coalesce(parameters.args.displayName, 'Publish to Build Artifact') }}\n ${{ if parameters.args.condition }}:\n condition: ${{ parameters.args.condition }}\n ${{ else }}:\n condition: succeeded()\n ${{ if parameters.args.continueOnError }}:\n continueOnError: ${{ parameters.args.continueOnError }}\n inputs:\n targetPath: ${{ parameters.args.targetPath }}\n ${{ if parameters.args.artifactName }}:\n artifactName: ${{ parameters.args.artifactName }}\n ${{ if parameters.args.publishLocation }}:\n publishLocation: ${{ parameters.args.publishLocation }}\n ${{ if parameters.args.fileSharePath }}:\n fileSharePath: ${{ parameters.args.fileSharePath }}\n ${{ if parameters.args.Parallel }}:\n parallel: ${{ parameters.args.Parallel }}\n ${{ if parameters.args.parallelCount }}:\n parallelCount: ${{ parameters.args.parallelCount }}\n ${{ if parameters.args.properties }}:\n properties: ${{ parameters.args.properties }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\publish-pipeline-artifacts.yml | publish-pipeline-artifacts.yml | YAML | 1,262 | 0.7 | 0.272727 | 0 | node-utils | 61 | 2025-01-12T05:23:00.255811 | BSD-3-Clause | false | f78cfcbcb2d039523172d4dbeb84382f |
steps:\n- template: /eng/common/core-templates/steps/retain-build.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\retain-build.yml | retain-build.yml | YAML | 201 | 0.7 | 0 | 0 | vue-tools | 219 | 2024-12-03T18:37:33.463497 | BSD-3-Clause | false | cc2bc2a0a9fe6ffdbb89d749a49c493f |
steps:\n- template: /eng/common/core-templates/steps/send-to-helix.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\send-to-helix.yml | send-to-helix.yml | YAML | 202 | 0.7 | 0 | 0 | python-kit | 79 | 2025-01-26T00:13:39.285152 | GPL-3.0 | false | 242f9a66dc8fd6487ab4c5b3130da286 |
steps:\n- template: /eng/common/core-templates/steps/source-build.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\source-build.yml | source-build.yml | YAML | 201 | 0.7 | 0 | 0 | awesome-app | 439 | 2025-05-20T22:14:51.445688 | MIT | false | b69d3712ac6cf56e6097ac25d3cff63f |
steps:\n- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml\n parameters:\n is1ESPipeline: false\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\steps\source-index-stage1-publish.yml | source-index-stage1-publish.yml | YAML | 216 | 0.7 | 0 | 0 | react-lib | 497 | 2024-10-27T10:55:34.965036 | BSD-3-Clause | false | c3145043ba90466996369182b75d9414 |
# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool,\n# otherwise it should go into the "normal" pools. This separates out the queueing and billing of released branches.\n\n# Motivation:\n# Once a given branch of a repository's output has been officially "shipped" once, it is then considered to be COGS\n# (Cost of goods sold) and should be moved to a servicing pool provider. This allows both separation of queueing\n# (allowing release builds and main PR builds to not intefere with each other) and billing (required for COGS.\n# Additionally, the pool provider name itself may be subject to change when the .NET Core Engineering Services\n# team needs to move resources around and create new and potentially differently-named pools. Using this template\n# file from an Arcade-ified repo helps guard against both having to update one's release/* branches and renaming.\n\n# How to use:\n# This yaml assumes your shipped product branches use the naming convention "release/..." (which many do).\n# If we find alternate naming conventions in broad usage it can be added to the condition below.\n#\n# First, import the template in an arcade-ified repo to pick up the variables, e.g.:\n#\n# variables:\n# - template: /eng/common/templates/variables/pool-providers.yml\n#\n# ... then anywhere specifying the pool provider use the runtime variables,\n# $(DncEngInternalBuildPool) and $ (DncEngPublicBuildPool), e.g.:\n#\n# pool:\n# name: $(DncEngInternalBuildPool)\n# demands: ImageOverride -equals windows.vs2019.amd64\nvariables:\n - ${{ if eq(variables['System.TeamProject'], 'internal') }}:\n - template: /eng/common/templates-official/variables/pool-providers.yml\n - ${{ else }}:\n # Coalesce the target and source branches so we know when a PR targets a release branch\n # If these variables are somehow missing, fall back to main (tends to have more capacity)\n\n # Any new -Svc alternative pools should have variables added here to allow for splitting work\n - name: DncEngPublicBuildPool\n value: $[\n replace(\n replace(\n eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'),\n True,\n 'NetCore-Svc-Public'\n ),\n False,\n 'NetCore-Public'\n )\n ]\n\n - name: DncEngInternalBuildPool\n value: $[\n replace(\n replace(\n eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'),\n True,\n 'NetCore1ESPool-Svc-Internal'\n ),\n False,\n 'NetCore1ESPool-Internal'\n )\n ]\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates\variables\pool-providers.yml | pool-providers.yml | YAML | 2,855 | 0.95 | 0.050847 | 0.490909 | node-utils | 747 | 2025-01-15T02:44:33.985241 | BSD-3-Clause | false | dc79a9880fc3bd181b1db3ec65e3fe68 |
parameters:\n# Sbom related params\n enableSbom: true\n runAsPublic: false\n PackageVersion: 9.0.0\n BuildDropPath: '$(Build.SourcesDirectory)/artifacts'\n\njobs:\n- template: /eng/common/core-templates/job/job.yml\n parameters:\n is1ESPipeline: true\n\n componentGovernanceSteps:\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.enableSbom, 'true')) }}:\n - template: /eng/common/templates/steps/generate-sbom.yml\n parameters:\n PackageVersion: ${{ parameters.packageVersion }}\n BuildDropPath: ${{ parameters.buildDropPath }}\n ManifestDirPath: $(Build.ArtifactStagingDirectory)/sbom\n publishArtifacts: false\n\n # publish artifacts\n # for 1ES managed templates, use the templateContext.output to handle multiple outputs.\n templateContext:\n outputParentDirectory: $(Build.ArtifactStagingDirectory)\n outputs:\n - ${{ if ne(parameters.artifacts.publish, '') }}:\n - ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:\n - output: buildArtifacts\n displayName: Publish pipeline artifacts\n PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts'\n ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}\n condition: always()\n retryCountOnTaskFailure: 10 # for any logs being locked\n continueOnError: true\n - ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:\n - output: pipelineArtifact\n targetPath: '$(Build.ArtifactStagingDirectory)/artifacts/log'\n artifactName: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)_Attempt$(System.JobAttempt)') }}\n displayName: 'Publish logs'\n continueOnError: true\n condition: always()\n retryCountOnTaskFailure: 10 # for any logs being locked\n sbomEnabled: false # we don't need SBOM for logs\n\n - ${{ if eq(parameters.enablePublishBuildArtifacts, true) }}:\n - output: buildArtifacts\n displayName: Publish Logs\n PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts/log/$(_BuildConfig)'\n publishLocation: Container\n ArtifactName: ${{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)_Attempt$(System.JobAttempt)' ) }}\n continueOnError: true\n condition: always()\n sbomEnabled: false # we don't need SBOM for logs\n\n - ${{ if eq(parameters.enableBuildRetry, 'true') }}:\n - output: pipelineArtifact\n targetPath: '$(Build.ArtifactStagingDirectory)/artifacts/eng/common/BuildConfiguration'\n artifactName: 'BuildConfiguration'\n displayName: 'Publish build retry configuration'\n continueOnError: true\n sbomEnabled: false # we don't need SBOM for BuildConfiguration\n\n - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.enableSbom, 'true')) }}:\n - output: pipelineArtifact\n displayName: Publish SBOM manifest\n continueOnError: true\n targetPath: $(Build.ArtifactStagingDirectory)/sbom\n artifactName: $(ARTIFACT_NAME)\n\n # add any outputs provided via root yaml\n - ${{ if ne(parameters.templateContext.outputs, '') }}:\n - ${{ each output in parameters.templateContext.outputs }}:\n - ${{ output }}\n \n # add any remaining templateContext properties\n ${{ each context in parameters.templateContext }}:\n ${{ if and(ne(context.key, 'outputParentDirectory'), ne(context.key, 'outputs')) }}:\n ${{ context.key }}: ${{ context.value }}\n\n ${{ each parameter in parameters }}:\n ${{ if and(ne(parameter.key, 'templateContext'), ne(parameter.key, 'is1ESPipeline')) }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\job\job.yml | job.yml | YAML | 4,211 | 0.8 | 0.192771 | 0.067568 | react-lib | 115 | 2024-11-11T21:39:32.446336 | BSD-3-Clause | false | 78cd9b802b41a2c4c0686f51cbbe8a1b |
jobs:\n- template: /eng/common/core-templates/job/onelocbuild.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\job\onelocbuild.yml | onelocbuild.yml | YAML | 196 | 0.7 | 0 | 0 | node-utils | 0 | 2024-04-08T19:38:22.301353 | MIT | false | 5c573c9c1ea06267dfa3f47dea2e61f7 |
jobs:\n- template: /eng/common/core-templates/job/publish-build-assets.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\job\publish-build-assets.yml | publish-build-assets.yml | YAML | 205 | 0.7 | 0 | 0 | vue-tools | 492 | 2023-12-21T07:09:34.139661 | BSD-3-Clause | false | 3e7ed296298f0b030cb628629e3bf83b |
jobs:\n- template: /eng/common/core-templates/job/source-build.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\job\source-build.yml | source-build.yml | YAML | 197 | 0.7 | 0 | 0 | node-utils | 874 | 2024-09-30T02:46:54.415358 | Apache-2.0 | false | e1091ad4de48c0fc96801afac0ab2a99 |
jobs:\n- template: /eng/common/core-templates/job/source-index-stage1.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\job\source-index-stage1.yml | source-index-stage1.yml | YAML | 204 | 0.7 | 0 | 0 | node-utils | 304 | 2023-09-12T00:15:48.415229 | GPL-3.0 | false | 620a06f775d8943f6494f162f7e41524 |
jobs:\n- template: /eng/common/core-templates/jobs/codeql-build.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\jobs\codeql-build.yml | codeql-build.yml | YAML | 198 | 0.7 | 0 | 0 | node-utils | 507 | 2023-10-02T16:37:40.596467 | MIT | false | d35bdbce251f1d612dcbc836ee974ebd |
jobs:\n- template: /eng/common/core-templates/jobs/jobs.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\jobs\jobs.yml | jobs.yml | YAML | 190 | 0.7 | 0 | 0 | node-utils | 920 | 2024-11-11T12:17:24.442179 | Apache-2.0 | false | 12294abf1659048c0304ce0ffd23273a |
jobs:\n- template: /eng/common/core-templates/jobs/source-build.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\jobs\source-build.yml | source-build.yml | YAML | 197 | 0.7 | 0 | 0 | awesome-app | 823 | 2024-04-12T19:43:57.577071 | BSD-3-Clause | false | 164ca5986230f70db7d9e6428b1090db |
variables:\n- template: /eng/common/core-templates/post-build/common-variables.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\post-build\common-variables.yml | common-variables.yml | YAML | 247 | 0.8 | 0 | 0.142857 | node-utils | 215 | 2024-09-14T12:13:00.303978 | GPL-3.0 | false | e6dd3b41ffc563bece83db92e1148773 |
stages:\n- template: /eng/common/core-templates/post-build/post-build.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\post-build\post-build.yml | post-build.yml | YAML | 239 | 0.8 | 0 | 0.142857 | vue-tools | 480 | 2024-04-06T23:13:02.274549 | Apache-2.0 | false | 10fe98a8f9da81f17ac9ce76e3678b43 |
steps:\n- template: /eng/common/core-templates/post-build/setup-maestro-vars.yml\n parameters:\n # Specifies whether to use 1ES\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\post-build\setup-maestro-vars.yml | setup-maestro-vars.yml | YAML | 245 | 0.8 | 0 | 0.142857 | vue-tools | 213 | 2024-10-18T03:14:15.726672 | GPL-3.0 | false | 3319c73ca03bf136891886314d1c8b90 |
steps:\n- template: /eng/common/core-templates/steps/component-governance.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\component-governance.yml | component-governance.yml | YAML | 208 | 0.7 | 0 | 0 | react-lib | 143 | 2023-09-01T08:25:43.474021 | Apache-2.0 | false | 06aa967218650d7f9cfb8ec46d8759e2 |
# Obtains internal runtime download credentials and populates the 'dotnetbuilds-internal-container-read-token-base64'\n# variable with the base64-encoded SAS token, by default\nsteps:\n- template: /eng/common/core-templates/steps/enable-internal-runtimes.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\enable-internal-runtimes.yml | enable-internal-runtimes.yml | YAML | 387 | 0.8 | 0 | 0.25 | vue-tools | 188 | 2024-03-04T16:06:29.013460 | Apache-2.0 | false | f57b264701d6d7acad609bf58c1ad4b2 |
steps:\n- template: /eng/common/core-templates/steps/enable-internal-sources.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\enable-internal-sources.yml | enable-internal-sources.yml | YAML | 210 | 0.7 | 0 | 0 | vue-tools | 783 | 2024-10-18T00:39:25.262075 | BSD-3-Clause | false | 4cb4678c0860ec21b8f586937e5d4098 |
steps:\n- template: /eng/common/core-templates/steps/generate-sbom.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\generate-sbom.yml | generate-sbom.yml | YAML | 201 | 0.7 | 0 | 0 | python-kit | 82 | 2025-02-19T08:03:35.913330 | BSD-3-Clause | false | 9d6e6daf2467dfa3ba7e3a070e217a2b |
steps:\n- template: /eng/common/core-templates/steps/get-delegation-sas.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\get-delegation-sas.yml | get-delegation-sas.yml | YAML | 206 | 0.7 | 0 | 0 | python-kit | 593 | 2024-09-07T15:40:41.258565 | BSD-3-Clause | false | 445f1d1e10142392945d56d80cef658d |
steps:\n- template: /eng/common/core-templates/steps/get-federated-access-token.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }} | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\get-federated-access-token.yml | get-federated-access-token.yml | YAML | 213 | 0.7 | 0 | 0 | react-lib | 160 | 2024-04-07T22:13:39.710818 | GPL-3.0 | false | 451a0bd19e999290b511849730f4b322 |
parameters:\n- name: displayName\n type: string\n default: 'Publish to Build Artifact'\n\n- name: condition\n type: string\n default: succeeded()\n\n- name: artifactName\n type: string\n\n- name: pathToPublish\n type: string\n\n- name: continueOnError\n type: boolean\n default: false\n\n- name: publishLocation\n type: string\n default: 'Container'\n\n- name: is1ESPipeline\n type: boolean\n default: true\n\n- name: retryCountOnTaskFailure\n type: string\n default: 10\n \nsteps:\n- ${{ if ne(parameters.is1ESPipeline, true) }}:\n - 'eng/common/templates-official cannot be referenced from a non-1ES managed template': error\n- task: 1ES.PublishBuildArtifacts@1\n displayName: ${{ parameters.displayName }}\n condition: ${{ parameters.condition }}\n ${{ if parameters.continueOnError }}:\n continueOnError: ${{ parameters.continueOnError }}\n inputs:\n PublishLocation: ${{ parameters.publishLocation }}\n PathtoPublish: ${{ parameters.pathToPublish }}\n ${{ if parameters.artifactName }}:\n ArtifactName: ${{ parameters.artifactName }}\n ${{ if parameters.retryCountOnTaskFailure }}:\n retryCountOnTaskFailure: ${{ parameters.retryCountOnTaskFailure }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\publish-build-artifacts.yml | publish-build-artifacts.yml | YAML | 1,156 | 0.7 | 0.086957 | 0 | vue-tools | 879 | 2025-03-28T14:48:17.001413 | BSD-3-Clause | false | dff936f4fd2a815e4a853bf2758eb9f4 |
steps:\n- template: /eng/common/core-templates/steps/publish-logs.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\publish-logs.yml | publish-logs.yml | YAML | 200 | 0.7 | 0 | 0 | node-utils | 345 | 2025-05-13T14:41:39.211333 | GPL-3.0 | false | cd97d3f9c7687a5b76651856fd38cc13 |
parameters:\n- name: is1ESPipeline\n type: boolean\n default: true\n\n- name: args\n type: object\n default: {}\n\nsteps:\n- ${{ if ne(parameters.is1ESPipeline, true) }}:\n - 'eng/common/templates-official cannot be referenced from a non-1ES managed template': error\n- task: 1ES.PublishPipelineArtifact@1\n displayName: ${{ coalesce(parameters.args.displayName, 'Publish to Build Artifact') }}\n ${{ if parameters.args.condition }}:\n condition: ${{ parameters.args.condition }}\n ${{ else }}:\n condition: succeeded()\n ${{ if parameters.args.continueOnError }}:\n continueOnError: ${{ parameters.args.continueOnError }}\n inputs:\n targetPath: ${{ parameters.args.targetPath }}\n ${{ if parameters.args.artifactName }}:\n artifactName: ${{ parameters.args.artifactName }}\n ${{ if parameters.args.properties }}:\n properties: ${{ parameters.args.properties }}\n ${{ if parameters.args.sbomEnabled }}:\n sbomEnabled: ${{ parameters.args.sbomEnabled }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\publish-pipeline-artifacts.yml | publish-pipeline-artifacts.yml | YAML | 973 | 0.7 | 0.214286 | 0 | vue-tools | 91 | 2023-12-18T22:19:12.038049 | GPL-3.0 | false | 0d09d9af5a70fba1d8994003f81dc51b |
steps:\n- template: /eng/common/core-templates/steps/retain-build.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\retain-build.yml | retain-build.yml | YAML | 200 | 0.7 | 0 | 0 | python-kit | 961 | 2024-05-21T18:45:11.493074 | BSD-3-Clause | false | 64c424567a833cb1b3baacc6c82278ed |
steps:\n- template: /eng/common/core-templates/steps/send-to-helix.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\send-to-helix.yml | send-to-helix.yml | YAML | 201 | 0.7 | 0 | 0 | react-lib | 150 | 2023-08-23T00:26:31.840751 | Apache-2.0 | false | 8073d7f9d6306dab92f89878a7eebf17 |
steps:\n- template: /eng/common/core-templates/steps/source-build.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\source-build.yml | source-build.yml | YAML | 200 | 0.7 | 0 | 0 | node-utils | 886 | 2023-07-15T23:42:26.172525 | MIT | false | bc24c27910c25e06953dc1fa1f53080f |
steps:\n- template: /eng/common/core-templates/steps/source-index-stage1-publish.yml\n parameters:\n is1ESPipeline: true\n\n ${{ each parameter in parameters }}:\n ${{ parameter.key }}: ${{ parameter.value }}\n | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\steps\source-index-stage1-publish.yml | source-index-stage1-publish.yml | YAML | 215 | 0.7 | 0 | 0 | node-utils | 670 | 2025-01-15T02:21:27.857426 | BSD-3-Clause | false | 4321803988638271478b0ee91c88e6d7 |
# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool, \n# otherwise it should go into the "normal" pools. This separates out the queueing and billing of released branches.\n\n# Motivation: \n# Once a given branch of a repository's output has been officially "shipped" once, it is then considered to be COGS\n# (Cost of goods sold) and should be moved to a servicing pool provider. This allows both separation of queueing\n# (allowing release builds and main PR builds to not intefere with each other) and billing (required for COGS.\n# Additionally, the pool provider name itself may be subject to change when the .NET Core Engineering Services \n# team needs to move resources around and create new and potentially differently-named pools. Using this template \n# file from an Arcade-ified repo helps guard against both having to update one's release/* branches and renaming.\n\n# How to use: \n# This yaml assumes your shipped product branches use the naming convention "release/..." (which many do).\n# If we find alternate naming conventions in broad usage it can be added to the condition below.\n#\n# First, import the template in an arcade-ified repo to pick up the variables, e.g.:\n#\n# variables:\n# - template: /eng/common/templates-official/variables/pool-providers.yml\n#\n# ... then anywhere specifying the pool provider use the runtime variables,\n# $(DncEngInternalBuildPool)\n#\n# pool:\n# name: $(DncEngInternalBuildPool)\n# image: 1es-windows-2022\n\nvariables:\n # Coalesce the target and source branches so we know when a PR targets a release branch\n # If these variables are somehow missing, fall back to main (tends to have more capacity)\n\n # Any new -Svc alternative pools should have variables added here to allow for splitting work\n\n - name: DncEngInternalBuildPool\n value: $[\n replace(\n replace(\n eq(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), 'true'),\n True,\n 'NetCore1ESPool-Svc-Internal'\n ),\n False,\n 'NetCore1ESPool-Internal'\n )\n ] | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\variables\pool-providers.yml | pool-providers.yml | YAML | 2,232 | 0.95 | 0.045455 | 0.675 | vue-tools | 773 | 2024-05-01T03:18:35.418454 | GPL-3.0 | false | 5095d98b380f7d996e2cbdcaaa5a2d4f |
variables:\n# The Guardian version specified in 'eng/common/sdl/packages.config'. This value must be kept in\n# sync with the packages.config file.\n- name: DefaultGuardianVersion\n value: 0.109.0\n- name: GuardianPackagesConfigFile\n value: $(Build.SourcesDirectory)\eng\common\sdl\packages.config | dataset_sample\yaml\dotnet_aspnetcore\eng\common\templates-official\variables\sdl-variables.yml | sdl-variables.yml | YAML | 294 | 0.8 | 0 | 0.285714 | python-kit | 965 | 2023-07-23T14:52:42.211771 | BSD-3-Clause | false | 7a649e5c188d945e05df59979b5af58e |
revision: 6\nschema-version: 5\nowner-ms-alias: adegeo\n\nconfig:\n DocMetadata:\n Headers:\n - ["---", "#### "]\n\n ParserRegex: "^\\* (.*): (.*)$"\n\n ContentUrlRegex:\n - "### Page URL\n\n(.*)"\n\nissues:\n\n opened:\n\n # Add links to related issues if it's a doc issue\n - check:\n - type: metadata-exists\n - type: variable-exists\n name: "document_version_independent_id"\n pass:\n - link-related-issues\n\n # If it's an issue from docs feedback, add svc/subsvc and source labels.\n - check:\n - type: metadata-exists\n pass:\n - labels-add: ["Source - Docs.ms"]\n - svc_subsvc_labels: true\n\nprojects_v2_item:\n\n reordered:\n\n - labels-add: ["mapQuest"]\n\n edited:\n\n - check:\n - type: query\n value: "EventPayload.changes.field_value.field_name == 'Priority' || EventPayload.changes.field_value.field_name == 'Size'"\n pass:\n - labels-add: ["mapQuest"]\n | dataset_sample\yaml\dotnet_AspNetCore.Docs\.repoman.yml | .repoman.yml | YAML | 954 | 0.8 | 0.021739 | 0.058824 | node-utils | 629 | 2024-02-02T15:21:02.209024 | Apache-2.0 | false | f00cfe17d0bc7206a8770cdb536607d5 |
apiRules:\n- exclude:\n uidRegex: ^System\.Object\n type: member # Avoid list of inherited Object members for each type.\n | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\filter.yml | filter.yml | YAML | 124 | 0.8 | 0.25 | 0 | python-kit | 691 | 2024-04-22T15:58:34.568209 | MIT | false | ce4a61424d1aa547fe09125e789050a4 |
- name: Articles\n href: articles/\n- name: API\n href: api/\n homepage: api/index.md\n- name: ChangeLog\n href: changelog/\n homepage: changelog/index.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\toc.yml | toc.yml | YAML | 152 | 0.7 | 0 | 0 | node-utils | 971 | 2024-01-20T07:54:21.336652 | GPL-3.0 | false | 4bff64973c3b19571de28f742d3a2655 |
- name: Overview\n href: overview.md\n- name: Guides\n href: guides/toc.yml\n- name: Features\n href: features/toc.yml\n- name: Configs\n href: configs/toc.yml\n- name: Samples\n href: samples/toc.yml\n- name: Contributing\n href: contributing/toc.yml\n- name: FAQ\n href: faq.md\n- name: Team\n href: team.md\n- name: License\n href: license.md\n | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\toc.yml | toc.yml | YAML | 338 | 0.7 | 0 | 0 | react-lib | 177 | 2024-03-31T00:22:55.445580 | MIT | false | 13a52ae3dc79616d8cd79563b3970d0c |
- name: Configs\n href: configs.md\n- name: Jobs\n href: jobs.md\n- name: Columns\n href: columns.md\n- name: Exporters\n href: exporters.md\n- name: Loggers\n href: loggers.md\n- name: Diagnosers\n href: diagnosers.md\n- name: Toolchains\n href: toolchains.md\n- name: Analysers\n href: analysers.md\n- name: Validators\n href: validators.md\n- name: Filters\n href: filters.md\n- name: Orderers\n href: orderers.md\n- name: ConfigOptions\n href: configoptions.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\configs\toc.yml | toc.yml | YAML | 453 | 0.7 | 0 | 0 | react-lib | 782 | 2023-09-11T19:31:50.590825 | GPL-3.0 | false | fc21849095e33ef3560a8f6fff034999 |
- name: Building\n href: building.md\n- name: Debugging\n href: debugging.md\n- name: Running tests\n href: running-tests.md\n- name: Miscellaneous topics\n href: miscellaneous.md\n- name: Disassembler\n href: disassembler.md\n- name: Documentation\n href: documentation.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\contributing\toc.yml | toc.yml | YAML | 268 | 0.7 | 0 | 0 | python-kit | 666 | 2025-02-02T22:25:40.010084 | MIT | false | 072c96c3763d6c8497d3841818a01a40 |
- name: Parameterization\n href: parameterization.md\n- name: Baselines\n href: baselines.md\n- name: Setup And Cleanup\n href: setup-and-cleanup.md\n- name: Statistics\n href: statistics.md\n- name: Disassembler\n href: disassembler.md\n- name: EtwProfiler\n href: etwprofiler.md\n- name: EventPipeProfiler\n href: event-pipe-profiler.md\n- name: VSProfiler\n href: vsprofiler.md\n- name: VSTest\n href: vstest.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\features\toc.yml | toc.yml | YAML | 406 | 0.7 | 0 | 0 | react-lib | 870 | 2023-07-25T01:53:48.494883 | Apache-2.0 | false | 0ef1c7551de29137213c9357a25732d0 |
- name: Getting Started\n href: getting-started.md\n- name: How to run your benchmarks\n href: how-to-run.md\n- name: Good Practices\n href: good-practices.md\n- name: Installing NuGet packages\n href: nuget.md\n- name: Choosing RunStrategy\n href: choosing-run-strategy.md\n- name: Customizing runtime\n href: customizing-runtime.md\n- name: How it works\n href: how-it-works.md\n- name: Console Arguments\n href: console-args.md\n- name: Troubleshooting\n href: troubleshooting.md\n- name: BenchmarkDotNet templates\n href: dotnet-new-templates.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\guides\toc.yml | toc.yml | YAML | 540 | 0.7 | 0 | 0 | vue-tools | 990 | 2023-12-25T13:28:46.205116 | GPL-3.0 | false | 0f543ee602074bdd053eae8354bbec32 |
- name: IntroArguments\n href: IntroArguments.md\n- name: IntroArgumentsSource\n href: IntroArgumentsSource.md\n- name: IntroArrayParam\n href: IntroArrayParam.md\n- name: IntroBasic\n href: IntroBasic.md\n- name: IntroBenchmarkBaseline\n href: IntroBenchmarkBaseline.md\n- name: IntroCategories\n href: IntroCategories.md\n- name: IntroCategoryBaseline\n href: IntroCategoryBaseline.md\n- name: IntroCategoryDiscoverer\n href: IntroCategoryDiscoverer.md\n- name: IntroColdStart\n href: IntroColdStart.md\n- name: IntroComparableComplexParam\n href: IntroComparableComplexParam.md\n- name: IntroConfigSource\n href: IntroConfigSource.md\n- name: IntroConfigUnion\n href: IntroConfigUnion.md\n- name: IntroCustomMono\n href: IntroCustomMono.md\n- name: IntroCustomMonoArguments\n href: IntroCustomMonoArguments.md\n- name: IntroDeferredExecution\n href: IntroDeferredExecution.md\n- name: IntroDisassembly\n href: IntroDisassembly.md\n- name: IntroDisassemblyAllJits\n href: IntroDisassemblyAllJits.md\n- name: IntroDisassemblyDry\n href: IntroDisassemblyDry.md\n- name: IntroDisassemblyRyuJit\n href: IntroDisassemblyRyuJit.md\n- name: IntroDotTraceDiagnoser\n href: IntroDotTraceDiagnoser.md\n- name: IntroDotMemoryDiagnoser\n href: IntroDotMemoryDiagnoser.md\n- name: IntroEnvVars\n href: IntroEnvVars.md\n- name: IntroEventPipeProfiler\n href: IntroEventPipeProfiler.md\n- name: IntroEventPipeProfilerAdvanced\n href: IntroEventPipeProfilerAdvanced.md\n- name: IntroExport\n href: IntroExport.md\n- name: IntroExportJson\n href: IntroExportJson.md\n- name: IntroExportXml\n href: IntroExportXml.md\n- name: IntroFilters\n href: IntroFilters.md\n- name: IntroFluentConfigBuilder\n href: IntroFluentConfigBuilder.md\n- name: IntroGcMode\n href: IntroGcMode.md\n- name: IntroGenericTypeArguments\n href: IntroGenericTypeArguments.md\n- name: IntroHardwareCounters\n href: IntroHardwareCounters.md\n- name: IntroInliningDiagnoser\n href: IntroInliningDiagnoser.md\n- name: IntroInProcess\n href: IntroInProcess.md\n- name: IntroInProcessWrongEnv\n href: IntroInProcessWrongEnv.md\n- name: IntroJitStatsDiagnoser\n href: IntroJitStatsDiagnoser.md\n- name: IntroJobBaseline\n href: IntroJobBaseline.md\n- name: IntroJoin\n href: IntroJoin.md\n- name: IntroLargeAddressAware\n href: IntroLargeAddressAware.md\n- name: IntroMonitoring\n href: IntroMonitoring.md\n- name: IntroMultimodal\n href: IntroMultimodal.md\n- name: IntroNativeMemory\n href: IntroNativeMemory.md\n- name: IntroNuGet\n href: IntroNuGet.md\n- name: IntroOrderAttr\n href: IntroOrderAttr.md\n- name: IntroOrderManual\n href: IntroOrderManual.md\n- name: IntroOutliers\n href: IntroOutliers.md\n- name: IntroParams\n href: IntroParams.md\n- name: IntroParamsAllValues\n href: IntroParamsAllValues.md\n- name: IntroParamsSource\n href: IntroParamsSource.md\n- name: IntroPercentiles\n href: IntroPercentiles.md\n- name: IntroPowerPlan\n href: IntroPowerPlan.md\n- name: IntroRankColumn\n href: IntroRankColumn.md\n- name: IntroRatioSD\n href: IntroRatioSD.md\n- name: IntroRatioStyle\n href: IntroRatioStyle.md\n- name: IntroSetupCleanupGlobal\n href: IntroSetupCleanupGlobal.md\n- name: IntroSetupCleanupIteration\n href: IntroSetupCleanupIteration.md\n- name: IntroSetupCleanupTarget\n href: IntroSetupCleanupTarget.md\n- name: IntroStaThread\n href: IntroStaThread.md\n- name: IntroStatisticalTesting\n href: IntroStatisticalTesting.md\n- name: IntroStatisticsColumns\n href: IntroStatisticsColumns.md\n- name: IntroStopOnFirstError\n href: IntroStopOnFirstError.md\n- name: IntroTagColumn\n href: IntroTagColumn.md\n- name: IntroTailcall\n href: IntroTailcall.md\n- name: IntroVisualStudioProfiler\n href: IntroVisualStudioProfiler.md\n- name: IntroWakeLock\n href: IntroWakeLock.md\n- name: IntroWasm\n href: IntroWasm.md\n- name: IntroUnicode\n href: IntroUnicode.md\n- name: IntroXamarin\n href: IntroXamarin.md | dataset_sample\yaml\dotnet_BenchmarkDotNet\docs\articles\samples\toc.yml | toc.yml | YAML | 3,815 | 0.7 | 0 | 0 | python-kit | 446 | 2024-12-05T19:41:55.496673 | MIT | false | 255e54526831f2e9a7d25336bbd43582 |
variables:\n - name: _BuildConfig\n value: Release\n - name: _TeamName\n value: AspNetCore\n - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n - name: _PublishUsingPipelines\n value: true\n - name: _CosmosConnectionUrl\n value: https://localhost:8081\n - name: _CosmosToken\n value: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==\n - name: PostBuildSign\n value: false\n - name: _InternalRuntimeDownloadArgs\n value: ''\n - name: LC_ALL\n value: 'en_US.UTF-8'\n - name: LANG\n value: 'en_US.UTF-8'\n - name: LANGUAGE\n value: 'en_US.UTF-8'\n - template: /eng/common/templates/variables/pool-providers.yml\n\ntrigger:\n batch: true\n branches:\n include:\n - main\n - release/*\n - feature/*\n - internal/release/*\n\npr: ['*']\n\nstages:\n- stage: build\n displayName: Build\n jobs:\n - template: eng/common/templates/jobs/jobs.yml\n parameters:\n enableMicrobuild: true\n enablePublishBuildArtifacts: true\n enablePublishBuildAssets: true\n enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}\n publishAssetsImmediately: true\n enableSourceIndex: false\n enableTelemetry: true\n helixRepo: dotnet/efcore\n jobs:\n - job: Windows\n enablePublishTestResults: true\n pool:\n name: $(DncEngPublicBuildPool)\n demands: ImageOverride -equals 1es-windows-2022-open\n timeoutInMinutes: 90\n variables:\n - _InternalBuildArgs: ''\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - script: "echo ##vso[build.addbuildtag]daily-build"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), ne(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - script: "echo ##vso[build.addbuildtag]release-candidate"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - powershell: SqlLocalDB start\n displayName: Start LocalDB\n - script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine /bl:artifacts\log\$(_BuildConfig)\Build.binlog $(_InternalBuildArgs)\n $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: macOS\n enablePublishTestResults: true\n pool:\n vmImage: macOS-13\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine /bl:artifacts/log/$(_BuildConfig)/Build.binlog $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: Linux\n timeoutInMinutes: 120\n enablePublishTestResults: true\n pool:\n vmImage: ubuntu-22.04\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n steps:\n - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine /bl:artifacts/log/$(_BuildConfig)/Build.binlog $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n Test__Cosmos__AuthToken: $(_CosmosToken)\n name: Build\n - task: PublishBuildArtifacts@1\n displayName: Upload TestResults\n condition: always()\n continueOnError: true\n inputs:\n pathtoPublish: artifacts/TestResults/$(_BuildConfig)/\n artifactName: $(Agent.Os)_$(Agent.JobName) TestResults\n artifactType: Container\n parallel: true\n\n - job: Helix\n timeoutInMinutes: 180\n pool:\n name: $(DncEngPublicBuildPool)\n demands: ImageOverride -equals 1es-windows-2022-open\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - Codeql.SkipTaskAutoInjection: true\n - name: _HelixBuildConfig\n value: $(_BuildConfig)\n - name: HelixTargetQueues\n value: Windows.10.Amd64.Open;OSX.13.Amd64.Open;Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-helix-sqlserver-amd64\n - name: _HelixAccessToken\n value: '' # Needed for public queues\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - script: restore.cmd -ci /p:configuration=$(_BuildConfig) $(_InternalRuntimeDownloadArgs)\n displayName: Restore packages\n - script: .dotnet\dotnet build eng\helix.proj /restore /t:Test /p:configuration=$(_BuildConfig) /bl:artifacts/log/$(_BuildConfig)/SendToHelix.binlog $(_InternalRuntimeDownloadArgs)\n displayName: Send job to helix\n env:\n HelixAccessToken: $(_HelixAccessToken)\n SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops\n MSSQL_SA_PASSWORD: "PLACEHOLDER"\n COMPlus_EnableWriteXorExecute: 0 # Work-around for https://github.com/dotnet/runtime/issues/70758\n DotNetBuildsInternalReadSasToken: $(dotnetbuilds-internal-container-read-token)\n | dataset_sample\yaml\dotnet_efcore\azure-pipelines-public.yml | azure-pipelines-public.yml | YAML | 7,504 | 0.8 | 0.017341 | 0.023952 | react-lib | 356 | 2025-05-21T22:44:15.347936 | MIT | false | efc19b27c80b1d47792719694f341ad6 |
variables:\n - name: _BuildConfig\n value: Release\n - name: _TeamName\n value: AspNetCore\n - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n - name: _PublishUsingPipelines\n value: true\n - name: _CosmosConnectionUrl\n value: https://localhost:8081\n - name: _CosmosToken\n value: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==\n - ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:\n - name: PostBuildSign\n value: false\n - ${{ else }}:\n - name: PostBuildSign\n value: true\n - group: DotNet-HelixApi-Access\n - name: _InternalRuntimeDownloadArgs\n value: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)\n - name: LC_ALL\n value: 'en_US.UTF-8'\n - name: LANG\n value: 'en_US.UTF-8'\n - name: LANGUAGE\n value: 'en_US.UTF-8'\n - template: /eng/common/templates-official/variables/pool-providers.yml@self\ntrigger:\n batch: true\n branches:\n include:\n - main\n - release/*\n - feature/*\n - internal/release/*\npr: ['*']\nresources:\n repositories:\n - repository: 1ESPipelineTemplates\n type: git\n name: 1ESPipelineTemplates/1ESPipelineTemplates\n ref: refs/tags/release\nextends:\n template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates\n parameters:\n featureFlags:\n autoBaseline: false\n usePrefastVersion3: true\n sdl:\n createAdoIssuesForJustificationsForDisablement: false\n sourceAnalysisPool:\n name: $(DncEngInternalBuildPool)\n image: 1es-windows-2022\n os: windows\n baseline:\n baselineFile: $(Build.SourcesDirectory)\.config\guardian\.gdnbaselines\n binskim:\n scanOutputDirectoryOnly: true\n preReleaseVersion: '4.3.1'\n policheck:\n enabled: true\n tsa:\n enabled: true\n customBuildTags:\n - ES365AIMigrationTooling\n stages:\n - stage: build\n displayName: Build\n jobs:\n - template: /eng/common/templates-official/jobs/jobs.yml@self\n parameters:\n enableMicrobuild: true\n enablePublishBuildArtifacts: true\n enablePublishBuildAssets: true\n enablePublishTestResults: true\n enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}\n publishAssetsImmediately: true\n enableTelemetry: true\n helixRepo: dotnet/efcore\n jobs:\n - job: Windows\n pool:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals 1es-windows-2022\n os: windows\n timeoutInMinutes: 180\n variables:\n - _InternalBuildArgs: ''\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:\n - _SignType: real\n - _InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName) /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines) /p:OfficialBuildId=$(BUILD.BUILDNUMBER)\n # Ignore test and infrastructure code.\n - Codeql.SourceRoot: src\n # CodeQL3000 needs this plumbed along as a variable to enable TSA.\n - Codeql.TSAEnabled: true\n # Default expects tsaoptions.json under SourceRoot.\n - Codeql.TSAOptionsPath: '$(Build.SourcesDirectory)/.config/tsaoptions.json'\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - script: "echo ##vso[build.addbuildtag]daily-build"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), ne(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - script: "echo ##vso[build.addbuildtag]release-candidate"\n condition: and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['IsFinalBuild'], 'true'))\n displayName: 'Set CI tags'\n - powershell: SqlLocalDB start\n displayName: Start LocalDB\n - template: /eng/common/templates-official/steps/enable-internal-sources.yml\n - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml\n - script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_InternalBuildArgs) $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n displayName: Build\n - task: CopyFiles@2\n displayName: 'Copy binaries for publishing'\n inputs:\n Contents: |\n artifacts/bin/**/?(*.dll|*.exe|*.pdb)\n !artifacts/bin/*Tests/**\n TargetFolder: $(Agent.TempDirectory)/BinArtifacts\n templateContext:\n outputs:\n - output: pipelineArtifact\n displayName: Publish binaries\n condition: always()\n path: $(Agent.TempDirectory)/BinArtifacts/\n artifact: BinArtifacts\n - output: pipelineArtifact\n displayName: Upload TestResults\n condition: always()\n path: artifacts/TestResults/$(_BuildConfig)/\n artifact: $(Agent.Os)_$(Agent.JobName) TestResults\n - job: macOS\n pool:\n name: Azure Pipelines\n image: macOS-13\n os: macOS\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n steps:\n - template: /eng/common/templates-official/steps/enable-internal-sources.yml\n - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml\n - script: eng/common/build.sh --restore --build --test --pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n # Work-around for https://github.com/dotnet/runtime/issues/70758\n COMPlus_EnableWriteXorExecute: 0\n displayName: Build\n templateContext:\n outputs:\n - output: pipelineArtifact\n displayName: Upload TestResults\n condition: always()\n path: artifacts/TestResults/$(_BuildConfig)/\n artifact: $(Agent.Os)_$(Agent.JobName) TestResults\n - job: Linux\n timeoutInMinutes: 180\n pool:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals 1es-ubuntu-2204\n os: linux\n variables:\n - _runCounter: $[counter(variables['Build.Reason'], 0)]\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }}:\n - _CosmosConnectionUrl: 'true'\n steps:\n - bash: |\n echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"\n displayName: Prepare to run Cosmos tests on ef-nightly-test\n condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '0'), endsWith(variables['_runCounter'], '2'), endsWith(variables['_runCounter'], '4'), endsWith(variables['_runCounter'], '6'), endsWith(variables['_runCounter'], '8')))\n - bash: |\n echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"\n displayName: Prepare to run Cosmos tests on ef-pr-test\n condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '1'), endsWith(variables['_runCounter'], '3'), endsWith(variables['_runCounter'], '5'), endsWith(variables['_runCounter'], '7'), endsWith(variables['_runCounter'], '9')))\n - template: /eng/common/templates-official/steps/enable-internal-sources.yml\n - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml\n - script: eng/common/build.sh --restore --build --test --pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)\n displayName: Build\n - task: AzureCLI@2\n displayName: Run Cosmos tests\n condition: notin(variables['Build.Reason'], 'PullRequest', 'Schedule')\n inputs:\n azureSubscription: EFCosmosTesting\n addSpnToEnvironment: true\n scriptType: bash\n scriptLocation: 'inlineScript'\n inlineScript: |\n ./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj\n env:\n Test__Cosmos__DefaultConnection: $(_CosmosConnectionUrl)\n Test__Cosmos__UseTokenCredential: true\n Test__Cosmos__SubscriptionId: d709b837-4a74-4aec-addc-b6e4b9b23e7e\n Test__Cosmos__ResourceGroup: efcosmosci\n name: Build\n templateContext:\n sdl:\n binskim:\n prereleaseVersion: ' '\n outputs:\n - output: pipelineArtifact\n displayName: Upload TestResults\n condition: always()\n path: artifacts/TestResults/$(_BuildConfig)/\n artifact: $(Agent.Os)_$(Agent.JobName) TestResults\n - job: Helix\n timeoutInMinutes: 180\n pool:\n name: $(DncEngInternalBuildPool)\n demands: ImageOverride -equals 1es-windows-2022\n os: windows\n variables:\n # Rely on task Arcade injects, not auto-injected build step.\n - skipComponentGovernanceDetection: true\n - name: _HelixBuildConfig\n value: $(_BuildConfig)\n - name: HelixTargetQueues\n value: Windows.10.Amd64;OSX.13.Amd64;OSX.13.ARM64;Ubuntu.2204.Amd64@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-helix-sqlserver-amd64\n - name: _HelixAccessToken\n # Needed for internal queues\n value: $(HelixApiAccessToken)\n steps:\n - task: NuGetCommand@2\n displayName: 'Clear NuGet caches'\n condition: succeeded()\n inputs:\n command: custom\n arguments: 'locals all -clear'\n - template: /eng/common/templates-official/steps/enable-internal-sources.yml\n - template: /eng/common/templates-official/steps/enable-internal-runtimes.yml\n - ${{ if ne(variables['System.TeamProject'], 'public') }}:\n - template: /eng/common/core-templates/steps/get-delegation-sas.yml\n parameters:\n federatedServiceConnection: 'dotnetbuilds-internal-read'\n outputVariableName: 'dotnetbuilds-internal-container-read-token'\n expiryInHours: 1\n base64Encode: false\n storageAccount: dotnetbuilds\n container: internal\n permissions: rl\n - script: restore.cmd -ci /p:configuration=$(_BuildConfig) $(_InternalRuntimeDownloadArgs)\n displayName: Restore packages\n - script: .dotnet\dotnet build eng\helix.proj /restore /t:Test /p:configuration=$(_BuildConfig) /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog $(_InternalRuntimeDownloadArgs)\n displayName: Send job to helix\n env:\n HelixAccessToken: $(_HelixAccessToken)\n # We need to set this env var to publish helix results to Azure Dev Ops\n SYSTEM_ACCESSTOKEN: $(System.AccessToken)\n MSSQL_SA_PASSWORD: "PLACEHOLDER"\n # Work-around for https://github.com/dotnet/runtime/issues/70758\n COMPlus_EnableWriteXorExecute: 0\n DotNetBuildsInternalReadSasToken: $(dotnetbuilds-internal-container-read-token)\n - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:\n - template: /eng/common/templates-official/post-build/post-build.yml@self\n parameters:\n publishingInfraVersion: 3\n enableSigningValidation: false\n enableNugetValidation: false\n enableSourceLinkValidation: false\n publishAssetsImmediately: true\n SDLValidationParameters:\n enable: false\n | dataset_sample\yaml\dotnet_efcore\azure-pipelines.yml | azure-pipelines.yml | YAML | 13,400 | 0.8 | 0.032967 | 0.040293 | react-lib | 30 | 2023-10-02T14:26:49.646229 | GPL-3.0 | false | 0f685540b6aa4e1a10972280bb016bf7 |
version: '3.8'\nservices:\n devcontainer:\n image: mcr.microsoft.com/dotnet/sdk:9.0\n volumes:\n - ..:/workspace/efcore:cached\n tty: true | dataset_sample\yaml\dotnet_efcore\.devcontainer\docker-compose.yml | docker-compose.yml | YAML | 147 | 0.7 | 0 | 0 | react-lib | 612 | 2025-01-03T18:09:46.634245 | Apache-2.0 | false | 14f9179387cd5e5f4e787cd8e5945747 |
version: 2\nregistries:\n nuget.org:\n type: nuget-feed\n url: https://api.nuget.org/v3/index.json\nupdates:\n - package-ecosystem: nuget\n directory: /\n schedule:\n interval: weekly\n allow:\n - dependency-name: Azure.Identity\n - dependency-name: Castle.Core\n - dependency-name: Grpc.AspNetCore\n - dependency-name: Humanizer.Core\n - dependency-name: IdentityServer4.EntityFramework\n - dependency-name: Microsoft.AspNetCore.Identity.EntityFrameworkCore\n - dependency-name: Microsoft.AspNetCore.OData\n - dependency-name: Microsoft.Azure.Cosmos\n - dependency-name: Microsoft.CSharp\n - dependency-name: Microsoft.Data.SqlClient\n - dependency-name: Microsoft.DotNet.PlatformAbstractions\n - dependency-name: Microsoft.SqlServer.Types\n - dependency-name: mod_spatialite\n - dependency-name: Mono.TextTemplating\n - dependency-name: NetTopologySuite*\n - dependency-name: Newtonsoft.Json\n - dependency-name: SQLitePCLRaw*\n ignore:\n # Affects minimum required Visual Studio version\n - dependency-name: Microsoft.CodeAnalysis.CSharp*\n # New analyzer rules would need to be disabled\n - dependency-name: DotNetAnalyzers.DocumentationAnalyzers\n - dependency-name: StyleCop.Analyzers\n # Testing infrastructure should be intentionally updated\n - dependency-name: BenchmarkDotNet\n labels:\n - area-infrastructure\n - 'type-dependency update :arrow_up_small:'\n registries: '*'\n | dataset_sample\yaml\dotnet_efcore\.github\dependabot.yml | dependabot.yml | YAML | 1,507 | 0.95 | 0 | 0.075 | awesome-app | 79 | 2025-03-14T03:10:39.898997 | BSD-3-Clause | false | 2a89a89b437627f7f9160084f6151bf7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.