Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ trigger:
- internal/release/*
- exp/*

schedules:
- cron: '0 0 * * 0'
displayName: Weekly CodeQL/SDL build
branches:
include:
- main
always: true

pr:
branches:
include:
Expand Down Expand Up @@ -115,7 +123,7 @@ extends:
preSteps:
- powershell: New-Item -ItemType Directory -Path $(Build.SourcesDirectory)/artifacts/bin -Force
displayName: Create artifacts/bin directory
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}:
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['Build.Reason'], 'BatchedCI')) }}:
timeoutInMinutes: 180
windowsJobParameterSets:
### OFFICIAL ###
Expand Down Expand Up @@ -170,7 +178,7 @@ extends:
publishTaskPrefix: 1ES.
populateInternalRuntimeVariables: true
runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}:
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['Build.Reason'], 'BatchedCI')) }}:
timeoutInMinutes: 90
linuxJobParameterSets:
### OFFICIAL ###
Expand Down Expand Up @@ -253,7 +261,7 @@ extends:
publishTaskPrefix: 1ES.
populateInternalRuntimeVariables: true
runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}:
${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest'), ne(variables['Build.Reason'], 'BatchedCI')) }}:
timeoutInMinutes: 90
macOSJobParameterSets:
### OFFICIAL ###
Expand Down
10 changes: 9 additions & 1 deletion eng/pipelines/templates/jobs/sdk-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,15 @@ jobs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
# This is the job name, but because of "legacy reasons", both Agent.JobName and System.JobName are not the actual job name.
# See: https://developercommunity.visualstudio.com/t/systemjobname-seems-to-be-incorrectly-assigned-and/1209736#TPIN-N1211828
ArtifactName: $(System.PhaseName)
ArtifactName: $(System.PhaseName)_Logs
publishLocation: Container
continueOnError: true
condition: always()

- task: ${{ parameters.oneESCompat.publishTaskPrefix }}PublishPipelineArtifact@1
displayName: 🟣 Publish Built Assets
inputs:
targetPath: $(Build.SourcesDirectory)/artifacts/packages/$(buildConfiguration)/Shipping
artifactName: $(System.PhaseName)_Assets
continueOnError: true
condition: not(canceled())
Loading