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: 🐛 Bug in Entity Framework Core\ndescription: Create a report about something that isn't working in Entity Framework Core.\nlabels: ["customer-reported"]\nbody:\n - type: markdown\n attributes:\n value: |-\n Remember:\n\n * Please check that the [documentation](https://docs.microsoft.com/ef/) does not explain the behavior you are seeing.\n * Please search in both [open](https://github.com/dotnet/efcore/issues) and [closed](https://github.com/dotnet/efcore/issues?q=is%3Aissue+is%3Aclosed) issues to check that your bug has not already been filed.\n - type: textarea\n id: description\n attributes:\n label: Bug description\n validations:\n required: true\n - type: textarea\n id: code\n attributes:\n label: Your code\n description: |-\n To fix any bug we must first reproduce it. To make this possible, please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing.\n\n It is often impossible for us to reproduce a bug when working with only code snippets since we have to guess at the missing code. \n render: csharp\n validations:\n required: true\n - type: textarea\n id: stack\n attributes:\n label: Stack traces\n description: |-\n Include the full exception message and stack trace for any exception you encounter. \n render: text\n validations:\n required: false\n - type: textarea\n id: output\n attributes:\n label: Verbose output\n description: |-\n Include `--verbose` output when filing bugs about the `dotnet ef` or Package Manager Console tools.\n render: text\n validations:\n required: false\n - type: input\n id: version-efcore\n attributes:\n label: EF Core version\n placeholder: |-\n 9.0.0\n validations:\n required: true\n - type: input\n id: version-provider\n attributes:\n label: Database provider\n placeholder: |-\n Microsoft.EntityFrameworkCore.SqlServer\n validations:\n required: false\n - type: input\n id: version-target\n attributes:\n label: Target framework\n placeholder: |-\n .NET 9.0\n validations:\n required: false\n - type: input\n id: version-os\n attributes:\n label: Operating system\n placeholder: |-\n Windows 11\n validations:\n required: false\n - type: input\n id: version-ide\n attributes:\n label: IDE\n placeholder: |-\n Visual Studio 2022 17.4\n validations:\n required: false\n
dataset_sample\yaml\dotnet_efcore\.github\ISSUE_TEMPLATE\01_bug_report_efcore.yml
01_bug_report_efcore.yml
YAML
2,538
0.95
0.023256
0.02381
node-utils
926
2024-01-23T15:41:35.665180
GPL-3.0
false
7f2467fa3136ea859a98e82c92ab258c
name: 🐛 Bug in Microsoft.Data.Sqlite\ndescription: Create a report about something that isn't working in Microsoft.Data.Sqlite.\nlabels: ["area-adonet-sqlite", "customer-reported"]\nbody:\n - type: markdown\n attributes:\n value: |-\n Remember:\n\n * Please check that the [documentation](https://docs.microsoft.com/ef/) does not explain the behavior you are seeing.\n * Please search in both [open](https://github.com/dotnet/efcore/issues) and [closed](https://github.com/dotnet/efcore/issues?q=is%3Aissue+is%3Aclosed) issues to check that your bug has not already been filed.\n - type: textarea\n id: description\n attributes:\n label: Bug description\n validations:\n required: true\n - type: textarea\n id: code\n attributes:\n label: Your code\n description: |-\n To fix any bug we must first reproduce it. To make this possible, please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing.\n\n It is often impossible for us to reproduce a bug when working with only code snippets since we have to guess at the missing code. \n render: csharp\n validations:\n required: true\n - type: textarea\n id: stack\n attributes:\n label: Stack traces\n description: |-\n Include the full exception message and stack trace for any exception you encounter. \n render: text\n validations:\n required: false\n - type: input\n id: version-mds\n attributes:\n label: Microsoft.Data.Sqlite version\n placeholder: |-\n 9.0.0\n validations:\n required: true\n - type: input\n id: version-target\n attributes:\n label: Target framework\n placeholder: |-\n .NET 9.0\n validations:\n required: false\n - type: input\n id: version-os\n attributes:\n label: Operating system\n placeholder: |-\n Windows 11\n validations:\n required: false\n
dataset_sample\yaml\dotnet_efcore\.github\ISSUE_TEMPLATE\02_bug_report_sqlite.yml
02_bug_report_sqlite.yml
YAML
1,946
0.95
0.032787
0.033898
react-lib
461
2024-06-16T15:24:52.143675
GPL-3.0
false
339a4ae26331216d573cd82cccb259aa
name: ❓ Ask a question\ndescription: Ask a question about Entity Framework Core or Microsoft.Data.Sqlite.\nlabels: ["customer-reported"]\nbody:\n - type: markdown\n attributes:\n value: |-\n Remember:\n\n * Please make your question as clear and specific as possible.\n * Please check that the [documentation](https://docs.microsoft.com/ef/) does not answer your question.\n * Please search in both [open](https://github.com/dotnet/efcore/issues) and [closed](https://github.com/dotnet/efcore/issues?q=is%3Aissue+is%3Aclosed) issues to check that your question has not already been answered.\n - type: textarea\n id: description\n attributes:\n label: Question\n validations:\n required: true\n - type: textarea\n id: code\n attributes:\n label: Your code\n description: |-\n Usually the best way to ask a clear question and get a quick response is to show your code. Preferably, attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing.\n render: csharp\n validations:\n required: false\n - type: textarea\n id: stack\n attributes:\n label: Stack traces\n description: |-\n Include the full exception message and stack trace for any exception you encounter. \n render: text\n validations:\n required: false\n - type: textarea\n id: output\n attributes:\n label: Verbose output\n description: |-\n Include `--verbose` output when filing bugs about the `dotnet ef` or Package Manager Console tools.\n render: text\n validations:\n required: false\n - type: input\n id: version-efcore\n attributes:\n label: EF Core version\n placeholder: |-\n 9.0.0\n validations:\n required: true\n - type: input\n id: version-provider\n attributes:\n label: Database provider\n placeholder: |-\n Microsoft.EntityFrameworkCore.SqlServer\n validations:\n required: false\n - type: input\n id: version-target\n attributes:\n label: Target framework\n placeholder: |-\n .NET 9.0\n validations:\n required: false\n - type: input\n id: version-os\n attributes:\n label: Operating system\n placeholder: |-\n Windows 11\n validations:\n required: false\n - type: input\n id: version-ide\n attributes:\n label: IDE\n placeholder: |-\n Visual Studio 2022 17.4\n validations:\n required: false\n
dataset_sample\yaml\dotnet_efcore\.github\ISSUE_TEMPLATE\03_ask_a_question.yml
03_ask_a_question.yml
YAML
2,464
0.95
0.011765
0.035714
python-kit
461
2025-05-30T04:38:43.552330
MIT
false
c4c6659ed94c65cacdca4de1f9e45f3e
name: 💡 Feature request\ndescription: Suggest an idea for this project.\nlabels: ["type-enhancement", "customer-reported"]\nbody:\n - type: textarea\n id: problem\n attributes:\n label: What problem are you trying to solve?\n validations:\n required: true\n - type: textarea\n id: solution\n attributes:\n label: Describe the solution you'd like\n validations:\n required: false\n
dataset_sample\yaml\dotnet_efcore\.github\ISSUE_TEMPLATE\04_feature_request.yml
04_feature_request.yml
YAML
407
0.85
0.0625
0
react-lib
204
2024-05-18T22:56:49.056071
MIT
false
3df7576c498bfb886e42135559bea427
blank_issues_enabled: true\ncontact_links:\n - name: Issue with ASP.NET Core\n url: https://github.com/dotnet/aspnetcore/issues/new/choose\n about: Please open issues relating to ASP.NET Core in dotnet/aspnetcore.\n - name: Issue with .NET runtime or core .NET libraries\n url: https://github.com/dotnet/runtime/issues/new/choose\n about: Please open issues relating to the .NET runtime or core .NET libraries in dotnet/runtime.\n - name: Issue with .NET SDK\n url: https://github.com/dotnet/sdk/issues/new/choose\n about: Please open issues relating to the .NET SDK itself in dotnet/sdk.\n - name: Issue with Roslyn compiler\n url: https://github.com/dotnet/roslyn/issues/new/choose\n about: Please open issues relating to the Roslyn .NET compiler in dotnet/roslyn.\n
dataset_sample\yaml\dotnet_efcore\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
786
0.8
0
0
react-lib
952
2025-06-05T01:28:09.530086
Apache-2.0
false
b79eb728540b522d4881f54d5ab45a0b
id: \nname: GitOps.PullRequestIssueManagement\ndescription: GitOps.PullRequestIssueManagement primitive\nowner: \nresource: repository\ndisabled: false\nwhere: \nconfiguration:\n resourceManagementConfiguration:\n scheduledSearches: []\n eventResponderTasks:\n - if:\n - payloadType: Pull_Request\n - hasLabel:\n label: auto-merge\n then:\n - enableAutoMerge:\n mergeMethod: Squash\n description: Auto-merge PRs\n - if:\n - payloadType: Pull_Request\n - labelRemoved:\n label: auto-merge\n then:\n - disableAutoMerge\n description: Auto-merge PRs\n - if:\n - payloadType: Pull_Request\n - isAction:\n action: Opened\n - isActivitySender:\n user: dotnet-maestro[bot]\n issueAuthor: False\n - titleContains:\n pattern: Update dependencies\n isRegex: False\n then:\n - addLabel:\n label: area-infrastructure\n - addLabel:\n label: 'type-dependency update :arrow_up_small:'\n - approvePullRequest:\n comment: Auto-approving dependency update.\n description: '[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests'\n - if:\n - payloadType: Pull_Request\n - isAction:\n action: Opened\n - isActivitySender:\n user: dotnet-maestro-bot\n issueAuthor: False\n - titleContains:\n pattern: Merge branch\n isRegex: False\n then:\n - addLabel:\n label: area-infrastructure\n - addLabel:\n label: 'type-merge forward :fast_forward:'\n - approvePullRequest:\n comment: Auto-approving branch merge.\n - addLabel:\n label: auto-merge\n description: '[Infrastructure PRs] Add area-infrastructure label to auto-merge Pull Requests'\nonFailure: \nonSuccess: \n
dataset_sample\yaml\dotnet_efcore\.github\policies\resourceManagement.yml
resourceManagement.yml
YAML
1,850
0.7
0.060606
0
vue-tools
991
2023-07-24T10:03:40.578397
BSD-3-Clause
false
14a301da1e43e9b556cd396604806834
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/inter-branch-merge-base.yml@main
dataset_sample\yaml\dotnet_efcore\.github\workflows\inter-branch-merge-flow.yml
inter-branch-merge-flow.yml
YAML
224
0.8
0
0
react-lib
66
2024-06-02T18:44:54.966804
Apache-2.0
false
367d81a1e1801b244fc90a89d375330b
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_efcore\eng\common\core-templates\job\job.yml
job.yml
YAML
8,953
0.8
0.164444
0.117949
python-kit
932
2024-08-12T19:10:52.609213
Apache-2.0
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_efcore\eng\common\core-templates\job\onelocbuild.yml
onelocbuild.yml
YAML
4,708
0.8
0.1
0.036697
awesome-app
972
2024-10-23T18:33:15.170255
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_efcore\eng\common\core-templates\job\publish-build-assets.yml
publish-build-assets.yml
YAML
6,508
0.8
0.100629
0.090226
node-utils
89
2023-11-07T17:44:03.550838
MIT
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_efcore\eng\common\core-templates\job\source-build.yml
source-build.yml
YAML
5,100
0.95
0.180851
0.421687
awesome-app
227
2024-10-27T15:16:23.360510
Apache-2.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_efcore\eng\common\core-templates\job\source-index-stage1.yml
source-index-stage1.yml
YAML
1,538
0.7
0.116279
0
node-utils
369
2023-07-19T03:42:05.974243
MIT
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_efcore\eng\common\core-templates\jobs\codeql-build.yml
codeql-build.yml
YAML
1,239
0.8
0.03125
0.178571
awesome-app
538
2025-05-16T04:30:15.887115
BSD-3-Clause
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_efcore\eng\common\core-templates\jobs\jobs.yml
jobs.yml
YAML
5,083
0.8
0.151261
0.208333
node-utils
738
2024-07-31T21:14:31.156372
MIT
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_efcore\eng\common\core-templates\jobs\source-build.yml
source-build.yml
YAML
2,635
0.95
0.137931
0.3125
node-utils
112
2024-04-23T07:18:34.791007
MIT
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_efcore\eng\common\core-templates\post-build\common-variables.yml
common-variables.yml
YAML
604
0.8
0
0.111111
react-lib
206
2023-12-07T18:17:17.924769
GPL-3.0
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_efcore\eng\common\core-templates\post-build\post-build.yml
post-build.yml
YAML
12,574
0.95
0.045732
0.074324
react-lib
938
2024-07-25T18:50:15.546366
BSD-3-Clause
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_efcore\eng\common\core-templates\post-build\setup-maestro-vars.yml
setup-maestro-vars.yml
YAML
2,868
0.8
0.067568
0
awesome-app
176
2024-05-26T05:27:35.820768
GPL-3.0
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_efcore\eng\common\core-templates\steps\cleanup-microbuild.yml
cleanup-microbuild.yml
YAML
925
0.8
0.142857
0.111111
awesome-app
432
2024-12-14T00:39:44.954573
MIT
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_efcore\eng\common\core-templates\steps\component-governance.yml
component-governance.yml
YAML
652
0.8
0.125
0
node-utils
756
2024-09-06T15:44:23.935406
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_efcore\eng\common\core-templates\steps\enable-internal-runtimes.yml
enable-internal-runtimes.yml
YAML
1,075
0.8
0.032258
0.066667
python-kit
567
2025-06-27T11:36:13.963932
Apache-2.0
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_efcore\eng\common\core-templates\steps\enable-internal-sources.yml
enable-internal-sources.yml
YAML
2,253
0.95
0.12766
0.173913
python-kit
632
2024-03-24T16:07:28.193856
MIT
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_efcore\eng\common\core-templates\steps\generate-sbom.yml
generate-sbom.yml
YAML
2,469
0.8
0.148148
0.145833
vue-tools
58
2024-01-08T04:51:02.491837
BSD-3-Clause
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_efcore\eng\common\core-templates\steps\get-delegation-sas.yml
get-delegation-sas.yml
YAML
1,561
0.8
0.065217
0.02439
node-utils
942
2025-06-19T15:21:00.173665
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_efcore\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
233
2024-09-14T10:33:34.348050
MIT
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_efcore\eng\common\core-templates\steps\install-microbuild.yml
install-microbuild.yml
YAML
3,675
0.8
0.141176
0.076923
react-lib
913
2025-05-27T11:59:45.324354
GPL-3.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_efcore\eng\common\core-templates\steps\publish-build-artifacts.yml
publish-build-artifacts.yml
YAML
667
0.7
0.052632
0
awesome-app
634
2025-05-22T01:39:59.011678
MIT
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_efcore\eng\common\core-templates\steps\publish-logs.yml
publish-logs.yml
YAML
2,476
0.8
0.016393
0.087719
react-lib
906
2024-10-09T21:03:49.485835
GPL-3.0
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_efcore\eng\common\core-templates\steps\publish-pipeline-artifacts.yml
publish-pipeline-artifacts.yml
YAML
562
0.7
0.05
0
python-kit
535
2023-10-23T23:17:13.003744
MIT
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_efcore\eng\common\core-templates\steps\retain-build.yml
retain-build.yml
YAML
1,222
0.8
0.148148
0.259259
awesome-app
935
2024-07-14T18:45:56.337058
GPL-3.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_efcore\eng\common\core-templates\steps\send-to-helix.yml
send-to-helix.yml
YAML
8,338
0.95
0.129032
0.01087
awesome-app
492
2023-09-16T01:09:55.578682
Apache-2.0
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_efcore\eng\common\core-templates\steps\source-build.yml
source-build.yml
YAML
5,935
0.8
0.180451
0.206897
react-lib
275
2024-11-07T00:37:26.360509
GPL-3.0
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_efcore\eng\common\core-templates\steps\source-index-stage1-publish.yml
source-index-stage1-publish.yml
YAML
2,051
0.8
0.057143
0.032258
node-utils
47
2024-12-26T21:50:33.434333
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_efcore\eng\common\core-templates\variables\pool-providers.yml
pool-providers.yml
YAML
258
0.7
0.142857
0
vue-tools
296
2024-01-07T02:47:10.447518
BSD-3-Clause
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_efcore\eng\common\templates\job\job.yml
job.yml
YAML
4,179
0.8
0.142857
0.012987
react-lib
973
2024-03-02T09:03:15.013937
MIT
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_efcore\eng\common\templates\job\onelocbuild.yml
onelocbuild.yml
YAML
197
0.7
0
0
node-utils
135
2025-05-04T09:45:09.433256
MIT
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_efcore\eng\common\templates\job\publish-build-assets.yml
publish-build-assets.yml
YAML
206
0.7
0
0
awesome-app
321
2024-01-05T11:56:47.563676
BSD-3-Clause
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_efcore\eng\common\templates\job\source-build.yml
source-build.yml
YAML
198
0.7
0
0
node-utils
960
2024-07-09T07:13:54.071889
Apache-2.0
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_efcore\eng\common\templates\job\source-index-stage1.yml
source-index-stage1.yml
YAML
205
0.7
0
0
node-utils
488
2024-03-24T17:51:52.815322
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_efcore\eng\common\templates\jobs\codeql-build.yml
codeql-build.yml
YAML
199
0.7
0
0
python-kit
980
2023-08-07T02:46:01.906403
Apache-2.0
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_efcore\eng\common\templates\jobs\jobs.yml
jobs.yml
YAML
191
0.7
0
0
awesome-app
702
2024-03-16T16:27:08.611656
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_efcore\eng\common\templates\jobs\source-build.yml
source-build.yml
YAML
198
0.7
0
0
python-kit
1,000
2023-12-05T16:45:23.156869
MIT
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_efcore\eng\common\templates\post-build\common-variables.yml
common-variables.yml
YAML
248
0.8
0
0.142857
vue-tools
845
2023-12-24T20:15:19.260842
MIT
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_efcore\eng\common\templates\post-build\post-build.yml
post-build.yml
YAML
239
0.8
0
0.142857
vue-tools
421
2025-03-30T22:52:56.491066
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_efcore\eng\common\templates\post-build\setup-maestro-vars.yml
setup-maestro-vars.yml
YAML
246
0.8
0
0.142857
python-kit
325
2023-07-22T08:04:34.381682
BSD-3-Clause
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_efcore\eng\common\templates\steps\component-governance.yml
component-governance.yml
YAML
209
0.7
0
0
react-lib
692
2023-09-25T06:27:36.642499
BSD-3-Clause
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_efcore\eng\common\templates\steps\enable-internal-runtimes.yml
enable-internal-runtimes.yml
YAML
389
0.8
0
0.25
vue-tools
306
2023-10-02T10:52:46.219285
BSD-3-Clause
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_efcore\eng\common\templates\steps\enable-internal-sources.yml
enable-internal-sources.yml
YAML
211
0.7
0
0
python-kit
606
2023-09-10T22:43:50.788380
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_efcore\eng\common\templates\steps\generate-sbom.yml
generate-sbom.yml
YAML
202
0.7
0
0
python-kit
473
2025-07-05T17:32:26.360243
MIT
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_efcore\eng\common\templates\steps\get-delegation-sas.yml
get-delegation-sas.yml
YAML
207
0.7
0
0
python-kit
33
2023-09-07T02:30:37.722767
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_efcore\eng\common\templates\steps\get-federated-access-token.yml
get-federated-access-token.yml
YAML
214
0.7
0
0
vue-tools
941
2025-04-01T18:51:17.501787
Apache-2.0
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_efcore\eng\common\templates\steps\publish-build-artifacts.yml
publish-build-artifacts.yml
YAML
1,140
0.7
0.086957
0
node-utils
917
2025-02-02T10:37:25.219310
Apache-2.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_efcore\eng\common\templates\steps\publish-logs.yml
publish-logs.yml
YAML
201
0.7
0
0
react-lib
974
2024-05-22T09:42:29.324419
Apache-2.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_efcore\eng\common\templates\steps\publish-pipeline-artifacts.yml
publish-pipeline-artifacts.yml
YAML
1,262
0.7
0.272727
0
react-lib
774
2024-08-06T16:33:21.880369
Apache-2.0
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_efcore\eng\common\templates\steps\retain-build.yml
retain-build.yml
YAML
201
0.7
0
0
python-kit
167
2024-05-13T21:08:41.947086
Apache-2.0
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_efcore\eng\common\templates\steps\send-to-helix.yml
send-to-helix.yml
YAML
202
0.7
0
0
react-lib
463
2024-03-08T23:30:47.061065
MIT
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_efcore\eng\common\templates\steps\source-build.yml
source-build.yml
YAML
201
0.7
0
0
vue-tools
218
2024-04-17T00:24:53.282423
BSD-3-Clause
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_efcore\eng\common\templates\steps\source-index-stage1-publish.yml
source-index-stage1-publish.yml
YAML
216
0.7
0
0
react-lib
175
2024-04-14T16:15:07.405347
MIT
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_efcore\eng\common\templates\variables\pool-providers.yml
pool-providers.yml
YAML
2,855
0.95
0.050847
0.490909
node-utils
302
2024-08-15T07:41:25.881699
Apache-2.0
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_efcore\eng\common\templates-official\job\job.yml
job.yml
YAML
4,211
0.8
0.192771
0.067568
python-kit
896
2024-05-21T19:21:26.817676
GPL-3.0
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_efcore\eng\common\templates-official\job\onelocbuild.yml
onelocbuild.yml
YAML
196
0.7
0
0
vue-tools
255
2023-07-16T19:12:25.436015
BSD-3-Clause
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_efcore\eng\common\templates-official\job\publish-build-assets.yml
publish-build-assets.yml
YAML
205
0.7
0
0
react-lib
611
2024-12-11T17:40:06.484070
Apache-2.0
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_efcore\eng\common\templates-official\job\source-build.yml
source-build.yml
YAML
197
0.7
0
0
node-utils
417
2025-03-12T13:36:43.611306
MIT
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_efcore\eng\common\templates-official\job\source-index-stage1.yml
source-index-stage1.yml
YAML
204
0.7
0
0
react-lib
573
2025-02-18T23:42:20.134773
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_efcore\eng\common\templates-official\jobs\codeql-build.yml
codeql-build.yml
YAML
198
0.7
0
0
python-kit
722
2024-05-13T08:18:42.530066
BSD-3-Clause
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_efcore\eng\common\templates-official\jobs\jobs.yml
jobs.yml
YAML
190
0.7
0
0
awesome-app
705
2025-03-31T12:10:34.088090
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_efcore\eng\common\templates-official\jobs\source-build.yml
source-build.yml
YAML
197
0.7
0
0
python-kit
631
2024-10-31T00:26:12.225881
GPL-3.0
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_efcore\eng\common\templates-official\post-build\common-variables.yml
common-variables.yml
YAML
247
0.8
0
0.142857
python-kit
660
2024-07-23T17:52:51.860991
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_efcore\eng\common\templates-official\post-build\post-build.yml
post-build.yml
YAML
239
0.8
0
0.142857
node-utils
175
2024-05-19T13:18:55.710952
BSD-3-Clause
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_efcore\eng\common\templates-official\post-build\setup-maestro-vars.yml
setup-maestro-vars.yml
YAML
245
0.8
0
0.142857
node-utils
659
2024-12-31T07:29:05.989057
Apache-2.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_efcore\eng\common\templates-official\steps\component-governance.yml
component-governance.yml
YAML
208
0.7
0
0
node-utils
481
2025-03-21T17:50:08.725760
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_efcore\eng\common\templates-official\steps\enable-internal-runtimes.yml
enable-internal-runtimes.yml
YAML
387
0.8
0
0.25
python-kit
828
2024-12-16T10:48:56.404076
MIT
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_efcore\eng\common\templates-official\steps\enable-internal-sources.yml
enable-internal-sources.yml
YAML
210
0.7
0
0
node-utils
71
2023-10-23T21:49:57.949697
MIT
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_efcore\eng\common\templates-official\steps\generate-sbom.yml
generate-sbom.yml
YAML
201
0.7
0
0
awesome-app
343
2023-10-23T10:46:23.237300
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_efcore\eng\common\templates-official\steps\get-delegation-sas.yml
get-delegation-sas.yml
YAML
206
0.7
0
0
python-kit
757
2024-09-20T17:18:17.670168
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_efcore\eng\common\templates-official\steps\get-federated-access-token.yml
get-federated-access-token.yml
YAML
213
0.7
0
0
react-lib
75
2023-11-09T08:18:03.133682
BSD-3-Clause
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_efcore\eng\common\templates-official\steps\publish-build-artifacts.yml
publish-build-artifacts.yml
YAML
1,156
0.7
0.086957
0
node-utils
741
2025-05-13T10:09:39.327769
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_efcore\eng\common\templates-official\steps\publish-logs.yml
publish-logs.yml
YAML
200
0.7
0
0
react-lib
576
2024-01-26T12:11:48.736513
BSD-3-Clause
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_efcore\eng\common\templates-official\steps\publish-pipeline-artifacts.yml
publish-pipeline-artifacts.yml
YAML
973
0.7
0.214286
0
node-utils
477
2024-04-05T01:32:14.442869
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_efcore\eng\common\templates-official\steps\retain-build.yml
retain-build.yml
YAML
200
0.7
0
0
vue-tools
303
2023-07-24T06:08:38.037227
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_efcore\eng\common\templates-official\steps\send-to-helix.yml
send-to-helix.yml
YAML
201
0.7
0
0
awesome-app
529
2024-03-21T09:26:48.305144
BSD-3-Clause
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_efcore\eng\common\templates-official\steps\source-build.yml
source-build.yml
YAML
200
0.7
0
0
python-kit
431
2025-02-02T05:10:41.870151
Apache-2.0
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_efcore\eng\common\templates-official\steps\source-index-stage1-publish.yml
source-index-stage1-publish.yml
YAML
215
0.7
0
0
node-utils
207
2024-10-11T02:42:07.731164
MIT
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_efcore\eng\common\templates-official\variables\pool-providers.yml
pool-providers.yml
YAML
2,232
0.95
0.045455
0.675
awesome-app
499
2024-08-12T06:06:29.737672
Apache-2.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_efcore\eng\common\templates-official\variables\sdl-variables.yml
sdl-variables.yml
YAML
294
0.8
0
0.285714
react-lib
771
2024-09-12T10:34:05.343532
Apache-2.0
false
7a649e5c188d945e05df59979b5af58e
path_classifiers:\n submodules:\n # Exclude from analysis any code that we pull in as submodules.\n - "src/Native/MatrixFactorizationNative/libmf"\n
dataset_sample\yaml\dotnet_machinelearning\.CodeQL.yml
.CodeQL.yml
YAML
151
0.8
0
0.25
awesome-app
62
2023-11-13T13:32:32.550461
BSD-3-Clause
false
537d60f31620b722b0b36936aff84a63
################################################################################\n# ML.NET's PR validation build\n################################################################################\n\npr:\n branches:\n include:\n - main\n - feature/*\n - release/*\n paths:\n include:\n - '*'\n exclude:\n - '**.md'\n - .github/*\n - docs/*\n - LICENSE\n - THIRD-PARTY-NOTICES.TXT\n\ntrigger:\n branches:\n include:\n - main\n - feature/*\n - release/*\n paths:\n include:\n - '*'\n exclude:\n - '**.md'\n - .github/*\n - docs/*\n - LICENSE\n - THIRD-PARTY-NOTICES.TXT\n\nresources:\n containers:\n - container: CentosContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-mlnet\n\n - container: UbuntuContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet\n\n - container: UbuntuCrossArmContainer\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm\n\n - container: UbuntuCrossArm64Container\n image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm64\n\njobs:\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm\n name: Ubuntu_x64_cross_arm\n buildScript: ./build.sh\n container: UbuntuCrossArmContainer\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-arm32v7\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: Ubuntu_x64_cross_arm64\n buildScript: ./build.sh\n container: UbuntuCrossArm64Container\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-arm64v8\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Centos_x64\n buildScript: ./build.sh\n container: CentosContainer\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9-mlnet-helix\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Ubuntu_x64\n buildScript: ./build.sh\n container: UbuntuContainer\n innerLoop: true\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals build.Ubuntu.2204.amd64.open\n helixQueue: Ubuntu.2204.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-mlnet-helix\n\n- template: /build/ci/job-template.yml\n parameters:\n name: MacOS_x64\n buildScript: ./build.sh\n innerLoop: true\n pool:\n vmImage: macOS-13\n helixQueue: OSX.13.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: MacOS_cross_arm64\n buildScript: ./build.sh\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: true\n _targetFramework: net8.0\n innerLoop: true\n pool:\n vmImage: macOS-13\n helixQueue: OSX.13.Arm64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n architecture: arm64\n name: Windows_cross_arm64\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n Release_Build:\n _configuration: Release\n _config_short: RI\n _includeBenchmarkData: false\n _targetFramework: net8.0\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v6.0"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: windows.11.arm64.open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64\n buildScript: build.cmd\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x64_NetFx461\n buildScript: build.cmd\n customMatrixes:\n Debug_Build:\n _configuration: Debug\n _config_short: DFX\n _includeBenchmarkData: false\n _targetFramework: net462\n Release_Build:\n _configuration: Release\n _config_short: RFX\n _includeBenchmarkData: false\n _targetFramework: net462\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v4.0"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n\n- template: /build/ci/job-template.yml\n parameters:\n name: Windows_x86\n architecture: x86\n buildScript: build.cmd\n innerLoop: true\n vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"\n pool:\n name: NetCore-Public\n demands: ImageOverride -equals 1es-windows-2019-open\n helixQueue: Windows.10.Amd64.Open\n
dataset_sample\yaml\dotnet_machinelearning\.vsts-dotnet-ci.yml
.vsts-dotnet-ci.yml
YAML
5,987
0.8
0
0.015
python-kit
892
2024-08-28T11:40:08.545876
GPL-3.0
false
55e004e7e165da2cad74998bfec365d4
# https://docs.codecov.io/docs/codecov-yaml\n# https://github.com/codecov/support/wiki/Codecov-Yaml\n\ncoverage:\n status:\n project:\n default: false\n patch:\n default: false\n fixes:\n - "build/::/"\n\ncomment:\n layout: "diff, flags, files"\n\nflags:\n production:\n paths:\n - src/\n test:\n paths:\n - test/\n
dataset_sample\yaml\dotnet_machinelearning\codecov.yml
codecov.yml
YAML
333
0.8
0
0.105263
awesome-app
248
2024-01-18T01:09:40.125011
BSD-3-Clause
false
29538d92497fcbba71ee4eb88af6f72e
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.\n\npipelines:\n 128:\n retail:\n source:\n credscan:\n lastModifiedDate: 2024-09-11\n eslint:\n lastModifiedDate: 2024-09-11\n armory:\n lastModifiedDate: 2024-09-11\n binary:\n credscan:\n lastModifiedDate: 2024-10-16\n binskim:\n lastModifiedDate: 2024-10-16\n 1152:\n retail:\n source:\n credscan:\n lastModifiedDate: 2024-07-30\n eslint:\n lastModifiedDate: 2024-07-30\n psscriptanalyzer:\n lastModifiedDate: 2024-07-30\n armory:\n lastModifiedDate: 2024-07-30\n binary:\n credscan:\n lastModifiedDate: 2024-07-30\n binskim:\n lastModifiedDate: 2024-07-30\n spotbugs:\n lastModifiedDate: 2024-07-30\n 1397:\n retail:\n source:\n credscan:\n lastModifiedDate: 2024-08-02\n eslint:\n lastModifiedDate: 2024-08-02\n psscriptanalyzer:\n lastModifiedDate: 2024-08-02\n armory:\n lastModifiedDate: 2024-08-02\n binary:\n credscan:\n lastModifiedDate: 2024-08-02\n binskim:\n lastModifiedDate: 2024-08-02\n spotbugs:\n lastModifiedDate: 2024-08-02
dataset_sample\yaml\dotnet_orleans\.config\1espt\PipelineAutobaseliningConfig.yml
PipelineAutobaseliningConfig.yml
YAML
1,398
0.8
0.019231
0.019231
python-kit
465
2024-05-25T07:47:33.405596
MIT
false
67cbaf65abfa63056bdeccae25f6db88
version: 2\nupdates:\n - package-ecosystem: "dotnet-sdk"\n directory: "/"\n schedule:\n interval: "weekly"\n day: "wednesday"\n ignore:\n - dependency-name: "*"\n update-types:\n - "version-update:semver-major"\n
dataset_sample\yaml\dotnet_orleans\.github\dependabot.yml
dependabot.yml
YAML
242
0.7
0
0
react-lib
873
2024-05-19T18:27:52.704089
Apache-2.0
false
04891342fe9f4964c9593f79cb7a5a54
id: \nname: GitOps.PullRequestIssueManagement\ndescription: GitOps.PullRequestIssueManagement primitive\nowner: \nresource: repository\ndisabled: false\nwhere: \nconfiguration:\n resourceManagementConfiguration:\n scheduledSearches:\n - description: Close stale issues\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isIssue\n - isOpen\n - hasLabel:\n label: 'Needs: author feedback'\n - hasLabel:\n label: 'Status: no recent activity'\n - noActivitySince:\n days: 3\n actions:\n - closeIssue\n - description: Add no recent activity label to issues\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isIssue\n - isOpen\n - hasLabel:\n label: 'Needs: author feedback'\n - noActivitySince:\n days: 4\n - isNotLabeledWith:\n label: 'Status: no recent activity'\n actions:\n - addLabel:\n label: 'Status: no recent activity'\n - addReply:\n reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.\n - description: Close duplicate issues\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isIssue\n - isOpen\n - hasLabel:\n label: duplicate\n actions:\n - addReply:\n reply: This issue has been marked as duplicate. It will be closed for housekeeping purposes.\n - closeIssue\n - description: Close stale pull requests\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isPullRequest\n - isOpen\n - hasLabel:\n label: 'Needs: author feedback'\n - hasLabel:\n label: 'Status: no recent activity'\n - noActivitySince:\n days: 7\n actions:\n - closeIssue\n - description: Add no recent activity label to pull requests\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isPullRequest\n - isOpen\n - hasLabel:\n label: 'Needs: author feedback'\n - noActivitySince:\n days: 7\n - isNotLabeledWith:\n label: 'Status: no recent activity'\n actions:\n - addLabel:\n label: 'Status: no recent activity'\n - addReply:\n reply: This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.\n - description: Close Answered questions\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isIssue\n - isOpen\n - hasLabel:\n label: ':heavy_check_mark: Resolution: Answered'\n actions:\n - addReply:\n reply: Thanks for contacting us. We believe that the question you've raised has been answered. If you still feel a need to continue the discussion, feel free to reopen the issue and add your comments.\n - addLabel:\n label: 'Status: Resolved'\n - closeIssue\n - description: Close by Design\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isOpen\n - isIssue\n - hasLabel:\n label: ':heavy_check_mark: Resolution: By Design'\n actions:\n - addReply:\n reply: Thank you for your feedback. We're closing this issue as the behavior discussed is by design.\n - addLabel:\n label: 'Status: Resolved'\n - closeIssue\n - description: Close duplicates\n frequencies:\n - hourly:\n hour: 6\n filters:\n - isOpen\n - isIssue\n - hasLabel:\n label: ':heavy_check_mark: Resolution: Duplicate'\n actions:\n - addReply:\n reply: >+\n This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.\n\n - addLabel:\n label: 'Status: Resolved'\n - closeIssue\n - description: 'Label issues as Stale '\n frequencies:\n - daily:\n time: 16:0\n filters:\n - isIssue\n - isOpen\n - hasNoLabel\n - isNotAssigned\n - isPartOfMilestone:\n milestone: Triage\n - created:\n before: 365\n actions:\n - addLabel:\n label: stale\n - addReply:\n reply: 'We are marking this issue as stale due to the lack of activity in the past six months. If there is no further activity within two weeks, this issue will be closed. You can always create a new issue based on the guidelines provided in our pinned announcement. '\n - description: Mark old issues in the backlog as stale\n frequencies:\n - daily:\n time: 17:0\n filters:\n - isOpen\n - hasNoLabel\n - isNotAssigned\n - isPartOfMilestone:\n milestone: Backlog\n - created:\n before: 365\n - isIssue\n actions:\n - addLabel:\n label: stale\n - addReply:\n reply: 'We are marking this issue as stale due to the lack of activity in the past six months. If there is no further activity within two weeks, this issue will be closed. You can always create a new issue based on the guidelines provided in our pinned announcement. '\n - description: Close Stale Issues\n frequencies:\n - daily:\n time: 15:0\n - daily:\n time: 18:0\n filters:\n - isIssue\n - isOpen\n - hasLabel:\n label: stale\n - noActivitySince:\n days: 10\n actions:\n - addReply:\n reply: 'This issue has been marked stale for the past 30 and is being closed due to lack of activity. '\n - closeIssue\n eventResponderTasks:\n - if:\n - payloadType: Pull_Request\n - isAction:\n action: Opened\n then:\n - addCodeFlowLink\n description: Add a CodeFlow link to new pull requests\nonFailure: \nonSuccess: \n
dataset_sample\yaml\dotnet_orleans\.github\policies\resourceManagement.yml
resourceManagement.yml
YAML
6,025
0.7
0.055276
0
awesome-app
90
2024-03-17T10:42:39.897757
Apache-2.0
false
3512ec99684b31ca348f1170f32019cb
name: .NET CI\non:\n workflow_dispatch:\n push:\n branches:\n - main\n pull_request:\n branches:\n - main\nenv:\n DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1\n DOTNET_NOLOGO: true\njobs:\n build:\n name: Build\n runs-on: ${{ matrix.os }}\n continue-on-error: true\n strategy:\n matrix:\n os: [ubuntu-latest, windows-latest, macos-latest]\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Build\n run: dotnet build -bl\n - uses: actions/upload-artifact@v4\n with:\n name: build_log_${{ matrix.os }}\n retention-days: 1\n path: |\n **/*.binlog\n test-redis:\n name: Redis provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["Redis"]\n framework: [net8.0]\n services:\n redis:\n image: redis\n ports:\n - 6379:6379\n options: >-\n --health-cmd "redis-cli ping"\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n ORLEANSREDISCONNECTIONSTRING: "localhost:6379,ssl=False,abortConnect=False"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-cassandra:\n name: Cassandra provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["Cassandra"]\n dbversion: ["4.0", "4.1", "5.0"]\n framework: [net8.0]\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Clustering)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.dbversion }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n CASSANDRAVERSION: ${{ matrix.dbversion }}\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.dbversion }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-postgres:\n name: PostgreSQL provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["PostgreSql"]\n framework: [net8.0]\n services:\n postgres:\n image: postgres\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="False positive")]\n POSTGRES_PASSWORD: postgres\n ports:\n - 5432:5432\n options: >-\n --health-cmd pg_isready\n --health-interval 10s\n --health-timeout 5s\n --health-retries 5\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="False positive")]\n ORLEANSPOSTGRESCONNECTIONSTRING: "Server=127.0.0.1;Port=5432;Pooling=false;User Id=postgres;Password=postgres;SSL Mode=Disable"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-mariadb:\n name: MariaDB/MySQL provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["MySql"]\n framework: [net8.0]\n services:\n mariadb:\n image: mariadb:10.6\n ports:\n - 3306:3306\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="False positive")]\n MARIADB_ROOT_PASSWORD: "mariadb"\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n ORLEANSMYSQLCONNECTIONSTRING: "Server=127.0.0.1;Port=3306;UId=root;Pwd=mariadb;"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-sqlserver:\n name: Microsoft SQL Server provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["SqlServer"]\n framework: [net8.0]\n services:\n mssql:\n image: mcr.microsoft.com/mssql/server:latest\n ports:\n - 1433:1433\n env:\n ACCEPT_EULA: "Y"\n MSSQL_PID: "Developer"\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="False positive")]\n SA_PASSWORD: "yourWeak(!)Password"\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n ORLEANSMSSQLCONNECTIONSTRING: "Server=127.0.0.1,1433;User Id=SA;Password=yourWeak(!)Password;"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-azure-storage:\n name: Azure Storage provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n framework: ["net8.0"]\n provider: ["AzureStorage"]\n services:\n azurite:\n image: mcr.microsoft.com/azure-storage/azurite:latest\n ports:\n - 10000:10000\n - 10001:10001\n - 10002:10002\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --framework ${{ matrix.framework }}\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n# [SuppressMessage("Microsoft.Security", "CSCAN0090:ConfigFile", Justification="Not a secret")]\n# [SuppressMessage("Microsoft.Security", "CSCAN0220:DefaultPasswordContexts", Justification="Not a secret")]\n ORLEANSDATACONNECTIONSTRING: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-azure-cosmosdb:\n if: ${{ false }}\n name: Azure Cosmos DB provider tests\n runs-on: windows-latest\n continue-on-error: true\n strategy:\n matrix:\n framework: ["net8.0"]\n provider: ["Cosmos"]\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n # - name: Install emulator certificate\n # run: |\n # sleep 90s\n # mkdir /tmp/emulatorcerts\n # sudo sh -c "curl -k https://127.0.0.1:${{ job.services.cosmosdb-emulator.ports[8081] }}/_explorer/emulator.pem > /tmp/emulatorcert.crt"\n # cat /tmp/emulatorcert.crt\n # awk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "emulatorcert." c ".crt"}' < /tmp/emulatorcert.crt\n # sudo cp emulatorcert.*.crt /usr/local/share/ca-certificates/\n # sudo update-ca-certificates\n - name: Start Azure Cosmos DB emulator\n run: |\n Write-Host "Launching Azure Cosmos DB Emulator"\n Import-Module "$env:ProgramFiles\Azure Cosmos DB Emulator\PSModules\Microsoft.Azure.CosmosDB.Emulator"\n Start-CosmosDbEmulator -NoUI -Consistency Strong -PartitionCount 2 -DefaultPartitionCount 2\n $IPAddress = "127.0.0.1" #(Get-NetIPAddress -AddressFamily IPV4 -AddressState Preferred -PrefixOrigin Manual | Select-Object IPAddress -First 1).IPAddress ?? "127.0.0.1"\n Add-Content -Path $env:GITHUB_ENV -Value "ORLEANSCOSMOSDBACCOUNTENDPOINT=https://$($IPAddress):8081/"\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n #ORLEANSCOSMOSDBACCOUNTENDPOINT: "https://127.0.0.1:8081/"\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n ORLEANSCOSMOSDBACCOUNTKEY: "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-consul:\n name: Consul provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["Consul"]\n framework: [net8.0]\n services:\n consul:\n image: hashicorp/consul\n ports:\n - 8500:8500\n - 8600:8600/tcp\n - 8600:8600/udp\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n# [SuppressMessage("Microsoft.Security", "CSCAN0090:ConfigFile", Justification="Not a secret")]\n# [SuppressMessage("Microsoft.Security", "CSCAN0220:DefaultPasswordContexts", Justification="Not a secret")]\n ORLEANSCONSULCONNECTIONSTRING: "http://localhost:8500"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-zookeeper:\n name: ZooKeeper provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["ZooKeeper"]\n framework: [net8.0]\n services:\n consul:\n image: bitnami/zookeeper\n ports:\n - 2181:2181\n env:\n ALLOW_ANONYMOUS_LOGIN: "yes"\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n ORLEANSZOOKEEPERCONNECTIONSTRING: "localhost:2181"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test-dynamodb:\n name: AWS DynamoDB provider tests\n runs-on: ubuntu-latest\n continue-on-error: true\n strategy:\n matrix:\n provider: ["DynamoDB"]\n framework: [net8.0]\n services:\n dynamodb:\n image: amazon/dynamodb-local:latest\n ports:\n - 8000:8000\n env:\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n AWS_ACCESS_KEY_ID: root\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n AWS_SECRET_ACCESS_KEY: pass\n AWS_REGION: us-east-1\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.provider }}&(Category=BVT|Category=SlowBVT|Category=Functional)"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n env:\n ORLEANSDYNAMODBSERVICE: "http://127.0.0.1:8000"\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n ORLEANSDYNAMODBACCESSKEY: "root"\n# [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")]\n ORLEANSDYNAMODBSECRETKEY: "pass"\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n test:\n name: Test\n runs-on: ${{ matrix.os }}\n continue-on-error: true\n strategy:\n matrix:\n suite: [BVT, SlowBVT, Functional]\n os: [ubuntu-latest, windows-latest, macos-latest]\n framework: [net8.0]\n steps:\n - uses: actions/checkout@v4\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n - name: Build\n run: dotnet build\n - name: Test\n run: dotnet test\n --framework ${{ matrix.framework }}\n --filter "Category=${{ matrix.suite }}"\n --blame-hang-timeout 10m\n --logger "trx;LogFileName=test_results_${{ matrix.suite }}_${{ matrix.framework }}.trx"\n --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true;summary.includeNotFoundTests=false"\n -- -parallel none -noshadow\n - name: Archive Test Results\n if: always()\n uses: actions/upload-artifact@v4\n with:\n name: test_output_${{ github.job }}_${{ matrix.suite }}_${{ matrix.os }}_${{ matrix.framework }}\n retention-days: 1\n path: |\n **/TestResults/*\n **/logs/*\n
dataset_sample\yaml\dotnet_orleans\.github\workflows\ci.yml
ci.yml
YAML
18,906
0.8
0.023211
0.098646
awesome-app
86
2025-05-07T01:07:20.699853
BSD-3-Clause
false
32e9762bc9b4106232485119ca281d42
name: Generate API Diffs\n\non:\n workflow_dispatch:\n schedule:\n - cron: '0 16 * * *' # 8am PST (16:00 UTC)\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n generate-and-pr:\n runs-on: ubuntu-latest\n steps:\n - name: Setup .NET\n uses: actions/setup-dotnet@v3\n with:\n dotnet-version: |\n 8.0.x\n\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n - name: Restore and build\n run: |\n set +e\n\n # Find all csproj files excluding specific paths\n find src -name '*.csproj' | egrep -v 'Orleans.Analyzers|Orleans.CodeGenerator' | while read proj; do\n export CI=false && dotnet build "$proj" -f net8.0 --configuration Release --no-incremental /t:"Build;GenAPIGenerateReferenceAssemblySource"\n done\n continue-on-error: true\n\n - name: Create or update pull request\n uses: dotnet/actions-create-pull-request@e8d799aa1f8b17f324f9513832811b0a62f1e0b1\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n branch: update-api-diffs\n base: main\n title: "[Automated] Update API Surface Area"\n body: "Auto-generated update to the API surface to compare current surface vs latest release. This should only be merged once this surface area ships in a new release."\n
dataset_sample\yaml\dotnet_orleans\.github\workflows\generate-api-diffs.yml
generate-api-diffs.yml
YAML
1,352
0.8
0.025
0.029412
react-lib
875
2025-02-27T04:03:15.069914
GPL-3.0
false
f9a30a4dc300c4cbbdaf373392e2343f
name: Locker - Lock stale issues and PRs\non:\n schedule:\n - cron: '0 9 * * *' # Once per day, early morning PT\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 steps:\n - name: Checkout Actions\n uses: actions/checkout@v4\n with:\n repository: "microsoft/vscode-github-triage-actions"\n path: ./actions\n ref: cd16cd2aad6ba2da74bb6c6f7293adddd579a90e # locker action commit sha\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
dataset_sample\yaml\dotnet_orleans\.github\workflows\locker.yml
locker.yml
YAML
1,002
0.95
0
0.030303
python-kit
585
2024-09-12T03:45:50.892500
BSD-3-Clause
false
4fe25c483df64a51fe1f57528cdd82cc
# Name: DotNet-Roslyn-Compliance\n# URL: https://devdiv.visualstudio.com/DevDiv/_build?definitionId=16722\n#\n# Responsible for running compliance checks.\n\n#\n# NOTE: triggers for this build are defined in the Web UI instead of here in the YAML file so they\n# apply to all branches.\n\nqueue:\n name: VSEngSS-MicroBuild2022-1ES\n demands: Cmd\n timeoutInMinutes: 90\nvariables:\n - group: DotNet-Roslyn-ApiScan\n - name: BuildConfiguration\n value: Release\n - name: TeamName\n value: DotNet-Roslyn\n - name: SignType\n value: test\n - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE\n value: true\n - name: _DevDivDropAccessToken\n value: $(System.AccessToken)\n - name: Codeql.Enabled\n value: false\n - name: Codeql.SkipTaskAutoInjection\n value: true\n\nsteps:\n- template: eng/pipelines/checkout-windows-task.yml\n\n- powershell: Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"\n displayName: Setting SourceBranchName variable\n\n- powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)"\n displayName: Setting VisualStudio.DropName variable\n\n- task: PowerShell@2\n displayName: Build\n inputs:\n filePath: eng/build.ps1\n arguments: -ci\n -prepareMachine\n -restore\n -build\n -configuration $(BuildConfiguration)\n -officialBuildId $(Build.BuildNumber)\n -officialSkipTests true\n -officialSkipApplyOptimizationData true\n -officialSourceBranchName $(SourceBranchName)\n -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken)\n /p:RepositoryName=$(Build.Repository.Name)\n /p:VisualStudioDropName=$(VisualStudio.DropName)\n\n- task: CopyFiles@2\n # APIScan can take a long time, so here we copy (mostly) just the product binaries and related .pdbs\n # in an effort to limit what it needs to work on.\n displayName: Copy Roslyn assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\Roslyn.VisualStudio.Setup\$(BuildConfiguration)\net472' # Limit to (mostly) product binaries\n Contents: |\n Microsoft.CodeAnalysis*.dll\n Microsoft.CodeAnalysis*.pdb\n Microsoft.VisualStudio.LanguageServices*.dll\n Microsoft.VisualStudio.LanguageServices*.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy csc assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\csc\$(BuildConfiguration)\net472'\n Contents: |\n csc.dll\n csc.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy vbc assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\vbc\$(BuildConfiguration)\net472'\n Contents: |\n vbc.dll\n vbc.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: CopyFiles@2\n displayName: Copy VBCSCompiler assemblies for APIScan\n inputs:\n SourceFolder: '$(Build.SourcesDirectory)\artifacts\bin\VBCSCompiler\$(BuildConfiguration)\net472'\n Contents: |\n VBCSCompiler.dll\n VBCSCompiler.pdb\n TargetFolder: '$(Agent.TempDirectory)\APIScanFiles'\n continueOnError: true\n\n- task: APIScan@2\n # Scan for the use of undocumented APIs.\n displayName: Run APIScan\n inputs:\n softwareFolder: '$(Agent.TempDirectory)\APIScanFiles' # Only examine the product binaries we previously copied.\n softwareName: 'Dotnet-Roslyn'\n softwareVersionNum: '17.0'\n softwareBuildNum: '$(Build.BuildId)'\n symbolsFolder: 'SRV*http://symweb'\n env:\n AzureServicesAuthConnectionString: runAs=App;AppId=$(MicroBuildApiScanClientId)\n continueOnError: true\n\n- task: TSAUpload@2\n # Scan the output of previous steps and create bugs for any problems.\n displayName: Upload results and create bugs\n inputs:\n GdnPublishTsaOnboard: true\n GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\eng\TSAConfig.gdntsa' # All relevant settings are in this file.\n continueOnError: true\n\n- task: PublishSecurityAnalysisLogs@3\n displayName: Publishing analysis artifacts\n inputs:\n ArtifactName: 'CodeAnalysisLogs'\n ArtifactType: 'Container' # Associate the artifacts with the build.\n AllTools: true # Look for logs from all tools.\n ToolLogsNotFoundAction: 'Standard' # If a log is not found just output a message to that effect.
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-compliance.yml
azure-pipelines-compliance.yml
YAML
4,637
0.8
0.070866
0.095652
react-lib
927
2023-11-22T12:25:39.211949
MIT
false
5c74685bb846d020967c04689cbf1a48
# Separate pipeline from normal integration CI to allow branches to change legs\n\n# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - release/dev17.4\n - release/dev17.6\n - release/dev17.8\n - release/dev17.9\n - release/dev17.10\n\n# Branches that are allowed to trigger a build via /azp run.\n# Automatic building of all PRs is disabled in the pipeline's trigger page.\n# See https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers\npr:\n branches:\n include:\n - release/dev17.4\n - release/dev17.6\n - release/dev17.8\n - release/dev17.9\n - release/dev17.10\n paths:\n exclude:\n - docs/*\n - eng/config/OptProf.json\n - eng/config/PublishData.json\n - .vscode/*\n - .github/*\n - .devcontainer/*\n - src/Compilers/*\n - .git-blame-ignore-revs\n - .vsconfig\n - CODE-OF-CONDUCT.md\n - CONTRIBUTING.md\n - README.md\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_CoreHost_Debug\n\n- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_CoreHost_Release\n
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-integration-corehost.yml
azure-pipelines-integration-corehost.yml
YAML
2,307
0.8
0.011236
0.060241
vue-tools
457
2025-01-30T14:07:29.420450
GPL-3.0
false
5e57bdbc4b0ae10c70980005b3eab1d2
# Roslyn integration test pipeline for validating against branch builds of VS.\n\ntrigger: none # Manual trigger for now\npr: none # Manual trigger for now\n\nresources:\n pipelines:\n - pipeline: VisualStudioBuildUnderTest\n source: DD-CB-ReleaseVS\n branch: main\n - pipeline: DartLab\n source: DartLab\n branch: main\n repositories:\n - repository: DartLabTemplates\n type: git\n name: DartLab.Templates\n ref: main\n - repository: RoslynMirror\n endpoint: dnceng/internal\n type: git\n name: internal/dotnet-roslyn\n ref: $(Build.SourceBranch)\n trigger:\n - main\n\nparameters:\n - name: prNumber\n type: string\n default: 'None'\n - name: sha\n type: string\n default: 'None'\n\nvariables:\n- name: XUNIT_LOGS\n value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nstages:\n- ${{ if ne(parameters.prNumber, 'None') }}:\n - stage: GitHubCommentFirst\n jobs:\n - job: GitHubCommentFirstJob\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'Started DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) for ${{ parameters.sha }}'\n\n- template: \stages\visual-studio\agent.yml@DartLabTemplates\n parameters:\n name: VSIntegration\n displayName: VS Integration\n testLabPoolName: VS-Platform\n visualStudioBootstrapperURI: https://vsdrop.corp.microsoft.com/file/v1/$(VisualStudio.BuildUnderTest.ProductsDropName);bootstrappers/Enterprise/vs_enterprise.exe\n visualStudioInstallationParameters: --add Microsoft.VisualStudio.Component.NuGet --add Microsoft.VisualStudio.Component.Roslyn.Compiler --add Microsoft.Component.MSBuild --add Microsoft.NetCore.Component.Runtime.6.0 --add Microsoft.NetCore.Component.SDK --add Microsoft.Net.Component.4.7.2.TargetingPack --add Microsoft.VisualStudio.Component.Roslyn.LanguageServices --add Microsoft.VisualStudio.Component.FSharp --add Microsoft.ComponentGroup.ClickOnce.Publish --add Microsoft.NetCore.Component.DevelopmentTools --add Microsoft.VisualStudio.Component.MSODBC.SQL --add Microsoft.VisualStudio.Component.MSSQL.CMDLnUtils --add Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime --add Microsoft.VisualStudio.Component.SQL.CLR --add Microsoft.VisualStudio.Component.CoreEditor --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.Net.Component.4.8.SDK --add Microsoft.Net.ComponentGroup.DevelopmentPrerequisites --add Microsoft.VisualStudio.Component.TypeScript.TSServer --add Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions --add Microsoft.VisualStudio.Component.JavaScript.TypeScript --add Microsoft.VisualStudio.Component.JavaScript.Diagnostics --add Microsoft.VisualStudio.Component.TextTemplating --add Component.Microsoft.VisualStudio.RazorExtension --add Microsoft.VisualStudio.Component.IISExpress --add Microsoft.VisualStudio.Component.Common.Azure.Tools --add Microsoft.Component.ClickOnce --add Microsoft.VisualStudio.Component.ManagedDesktop.Core --add Microsoft.VisualStudio.Component.SQL.SSDT --add Microsoft.VisualStudio.Component.SQL.DataSources --add Component.Microsoft.Web.LibraryManager --add Component.Microsoft.WebTools.BrowserLink.WebLivePreview --add Microsoft.VisualStudio.ComponentGroup.Web --add Microsoft.VisualStudio.Component.FSharp.WebTemplates --add Microsoft.VisualStudio.Component.DockerTools --add Microsoft.NetCore.Component.Web --add Microsoft.VisualStudio.Component.WebDeploy --add Microsoft.VisualStudio.Component.AppInsights.Tools --add Microsoft.VisualStudio.Component.Web --add Microsoft.Net.Component.4.8.TargetingPack --add Microsoft.Net.ComponentGroup.4.8.DeveloperTools --add Microsoft.VisualStudio.Component.AspNet45 --add Microsoft.VisualStudio.Component.AspNet --add Component.Microsoft.VisualStudio.Web.AzureFunctions --add Microsoft.VisualStudio.ComponentGroup.AzureFunctions --add Microsoft.VisualStudio.Component.Debugger.Snapshot --add Microsoft.VisualStudio.ComponentGroup.Web.CloudTools --add Microsoft.VisualStudio.Component.IntelliTrace.FrontEnd --add Microsoft.VisualStudio.Component.DiagnosticTools --add Microsoft.VisualStudio.Component.EntityFramework --add Microsoft.VisualStudio.Component.LiveUnitTesting --add Microsoft.VisualStudio.Component.Debugger.JustInTime --add Component.Microsoft.VisualStudio.LiveShare.2022 --add Microsoft.VisualStudio.Component.WslDebugging --add Microsoft.VisualStudio.Component.IntelliCode --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites --add Microsoft.ComponentGroup.Blend --add Microsoft.VisualStudio.Component.DotNetModelBuilder --add Microsoft.VisualStudio.Component.FSharp.Desktop --add Microsoft.VisualStudio.Component.PortableLibrary --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.Net.Component.4.6.TargetingPack --add Microsoft.VisualStudio.Component.VSSDK --add Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites --add Microsoft.Component.CodeAnalysis.SDK --add Microsoft.VisualStudio.Workload.VisualStudioExtension --installPath "C:\Test\VisualStudio" --quiet --norestart --wait\n testExecutionJobStrategy:\n maxParallel: 4\n matrix:\n debug_32:\n _configuration: Debug\n _oop64bit: false\n debug_64:\n _configuration: Debug\n _oop64bit: true\n release_32:\n _configuration: Release\n _oop64bit: false\n release_64:\n _configuration: Release\n _oop64bit: true\n testMachineTotalCount: 4\n testAgentElevated: true\n preTestMachineConfigurationStepList:\n - checkout: none\n - download: VisualStudioBuildUnderTest\n - task: PowerShell@2\n name: SetProductsDropName\n displayName: Set 'VisualStudio.BuildUnderTest.ProductsDropName'\n inputs:\n filePath: $(DartLab.Path)\Scripts\VisualStudio\Build\Get-VisualStudioDropName.ps1\n arguments: -DropNamePrefix 'Products' -VstsDropUrlsJson '$(Pipeline.Workspace)\VisualStudioBuildUnderTest\BuildArtifacts\VstsDropUrls.json' -OutVariableName 'VisualStudio.BuildUnderTest.ProductsDropName'\n deployAndRunTestsStepList:\n - checkout: RoslynMirror\n fetchDepth: 1\n fetchTags: false\n - template: eng/pipelines/test-integration-job.yml\n parameters:\n configuration: $(_configuration)\n oop64bit: $(_oop64bit)\n lspEditor: false\n skipCheckout: true\n\n- ${{ if ne(parameters.prNumber, 'None') }}:\n - stage: GitHubCommentCompleted\n condition: always()\n dependsOn: VSIntegration\n jobs:\n - job: GitHubCommentCompletedSuccessfullyJob\n condition: eq(stageDependencies.VSIntegration.result, 'Succeeded')\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) completed successfully for ${{ parameters.sha }}'\n - job: GitHubCommentCompletedUnsuccessfullyJob\n condition: ne(stageDependencies.VSIntegration.result, 'Succeeded')\n steps:\n - checkout: none\n - task: GitHubComment@0\n inputs:\n gitHubConnection: 'dotnet-comment-bot-service-connection'\n repositoryName: '$(Build.Repository.Name)'\n id: ${{ parameters.prNumber }}\n comment: 'DartLab pipeline [run]($(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)) did not complete successfully for ${{ parameters.sha }}'
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-integration-dartlab.yml
azure-pipelines-integration-dartlab.yml
YAML
8,047
0.8
0.064516
0.008475
awesome-app
829
2024-02-10T22:54:10.950452
GPL-3.0
false
8ebca88277670fecac0774a53888fcff
# Separate pipeline from normal integration CI to allow branches to change legs\n\n# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.0-vs-deps\n - release/dev17.2\n - release/dev17.3\n\n# Branches that are allowed to trigger a build via /azp run.\n# Automatic building of all PRs is disabled in the pipeline's trigger page.\n# See https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers\npr:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.0-vs-deps\n - release/dev17.2\n - release/dev17.3\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: true\n lspEditor: true\n runName: VS_Integration_LSP_Debug_64\n
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-integration-lsp.yml
azure-pipelines-integration-lsp.yml
YAML
2,004
0.8
0
0.128571
react-lib
833
2023-12-16T04:47:05.914372
Apache-2.0
false
08331088fe1f94f77425059e26b9fb18
# Disable CI triggers\ntrigger: none\npr: none\n\n# Nightly run of integration tests against the scouting queue\nschedules:\n- cron: "0 0 * * *"\n displayName: Nightly builds\n branches:\n include:\n - main\n - main-vs-deps\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Debug_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Debug_64\n\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Release_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Release_64\n
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-integration-scouting.yml
azure-pipelines-integration-scouting.yml
YAML
1,650
0.8
0
0.03125
react-lib
988
2024-06-17T18:01:58.494580
Apache-2.0
false
87dc7004117da0769eb74b70c68f2eaa
# Branches that trigger a build on commit\ntrigger:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.8\n - release/dev17.10\n - release/dev17.12\n\n# Branches that trigger builds on PR\npr:\n branches:\n include:\n - main\n - main-vs-deps\n - release/*\n - features/*\n - demos/*\n exclude:\n # Since the version of VS on the integration VM images are a moving target,\n # we are unable to reliably run integration tests on servicing branches.\n - release/dev17.8\n - release/dev17.10\n - release/dev17.12\n paths:\n exclude:\n - docs/*\n - eng/config/OptProf.json\n - eng/config/PublishData.json\n - eng/setup-pr-validation.ps1\n - .vscode/*\n - .github/*\n - .devcontainer/*\n - .git-blame-ignore-revs\n - .vsconfig\n - azure-pipelines-compliance.yml\n - azure-pipelines-integration-dartlab.yml\n - azure-pipelines-integration-scouting.yml\n - azure-pipelines-official.yml\n - azure-pipelines-pr-validation.yml\n - CODE-OF-CONDUCT.md\n - CONTRIBUTING.md\n - README.md\n - src/Compilers/*\n - src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/README.md\n\nvariables:\n- name: Codeql.Enabled\n value: false\n- name: Codeql.SkipTaskAutoInjection\n value: true\n\nparameters:\n- name: poolName\n displayName: Pool Name\n type: string\n default: NetCore-Public\n values:\n - NetCore-Public\n - NetCore-Svc-Public\n- name: queueName\n displayName: Queue Name\n type: string\n default: windows.vs2022preview.scout.amd64.open\n values:\n - windows.vs2022.amd64.open\n - windows.vs2022.scout.amd64.open\n - windows.vs2022preview.amd64.open\n - windows.vs2022preview.scout.amd64.open\n- name: timeout\n displayName: Timeout in Minutes\n type: number\n default: 150\n\nstages:\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Debug\n testRuns:\n - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Debug_32\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Debug_64\n\n- template: eng/pipelines/test-integration-helix.yml\n parameters:\n poolName: ${{ parameters.poolName }}\n queueName: ${{ parameters.queueName }}\n timeout: ${{ parameters.timeout }}\n configuration: Release\n testRuns:\n - oop64bit: false\n lspEditor: false\n runName: VS_Integration_Release_32\n - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:\n - oop64bit: true\n lspEditor: false\n runName: VS_Integration_Release_64\n
dataset_sample\yaml\dotnet_roslyn\azure-pipelines-integration.yml
azure-pipelines-integration.yml
YAML
2,983
0.8
0.018018
0.056604
vue-tools
395
2024-06-09T19:59:08.704630
MIT
false
579230862e18af6066edb5da9da0e8ff