Skip to content

Commit

Permalink
Revert "Move corefx to stages, use arcade's package artifacts convent…
Browse files Browse the repository at this point in the history
…ion (dotnet#40124) (dotnet#40198)" (dotnet#40203)

This reverts commit 47c997a.
  • Loading branch information
safern authored Aug 9, 2019
1 parent 47c997a commit cd11237
Show file tree
Hide file tree
Showing 19 changed files with 729 additions and 588 deletions.
33 changes: 8 additions & 25 deletions .azure-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,7 @@ resources:
- container: ubuntu_1604_arm_cross_container
image: microsoft/dotnet-buildtools-prereqs:ubuntu-16.04-cross-ef0ac75-20175511035548

variables:
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
- group: DotNet-Blob-Feed
- name: _dotnetFeedUrl
value: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
- name: _PublishUsingPipelines
value: true
- name: _DotNetArtifactsCategory
value: .NETCore
- name: _DotNetValidationArtifactsCategory
value: .NETCore

stages:
jobs:
# Windows legs
- template: /eng/pipelines/windows.yml
parameters:
Expand All @@ -80,19 +68,14 @@ stages:
# isOfficialBuild: ${{ and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}
# fullMatrix: ${{ notIn(variables['Build.Reason'], 'PullRequest') }}

# Publish and validation steps. Only run in official builds
# Publish step. Only run in official builds
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/pipelines/pre-publish.yml
- template: /eng/pipelines/publish.yml
parameters:
dependsOn:
- WindowsStage
- LinuxStage
- MacOSStage
- WindowsTest
- WindowsNoTest
- AllConfigurations
- LinuxTest
- MacOS
# - FreeBSD

- template: eng\common\templates\post-build\post-build.yml
parameters:
dependsOn:
- PrePublish
enableSymbolValidation: false # https://github.com/dotnet/arcade/issues/2871
enableSourceLinkValidation: false # https://github.com/dotnet/arcade/issues/3603
3 changes: 0 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,4 @@
<ILLinkClearInitLocals Condition="'$(IsSourceProject)' == 'true' and '$(Language)' != 'VB'">true</ILLinkClearInitLocals>
</PropertyGroup>

<PropertyGroup>
<IsShipping Condition="$(MSBuildProjectName.Contains('Private')) or $(MSBuildProjectName.Contains('Experimental'))">false</IsShipping>
</PropertyGroup>
</Project>
17 changes: 12 additions & 5 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />

<PropertyGroup>
<ArtifactsPackagesDir>$([MSBuild]::NormalizePath('$(ArtifactsDir)', 'packages', '$(ConfigurationGroup)'))</ArtifactsPackagesDir>
<ArtifactsShippingPackagesDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsPackagesDir)', 'Shipping'))</ArtifactsShippingPackagesDir>
<ArtifactsNonShippingPackagesDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsPackagesDir)', 'NonShipping'))</ArtifactsNonShippingPackagesDir>
<!--
Reset PackageOutputPath property from arcade as we need to use ConfigurationGroup instead of Configuration which arcade uses.
See issue https://github.com/dotnet/corefx/issues/33275
-->
<PackageOutputPath>$(ArtifactsDir)packages/$(ConfigurationGroup)/</PackageOutputPath>
<SymbolPackageOutputPath Condition="'$(SymbolPackageOutputPath)'==''">$(PackageOutputPath)symbols/</SymbolPackageOutputPath>

<PackageOutputPath Condition="'$(IsShippingPackage)' == 'true'">$(ArtifactsShippingPackagesDir)</PackageOutputPath>
<PackageOutputPath Condition="'$(IsShippingPackage)' != 'true'">$(ArtifactsNonShippingPackagesDir)</PackageOutputPath>
<!--
PublishPattern needs to be the root of the packages folder to ensure we maintain the relative structure
in the blob container which would have a Debug or Release subfolder otherwise we end trying to publish both
Debug and Release assets during our publish legs.
-->
<PublishPattern Condition="'$(PublishPattern)' == ''">$(ArtifactsDir)packages\**\*.nupkg</PublishPattern>
</PropertyGroup>

<Import Project="$(RepositoryEngineeringDir)versioning.targets" />
Expand Down
2 changes: 1 addition & 1 deletion eng/Tools.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<!-- excluded from source build -->
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="$(MicrosoftDotNetApiCompatPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Feed" Version="$(MicrosoftDotNetBuildTasksFeedPackageVersion)" />
<PackageReference Include="Microsoft.DotNet.VersionTools.Tasks" Version="$(MicrosoftDotNetVersionToolsTasksPackageVersion)" />

<!-- SourceLink -->
Expand Down
56 changes: 28 additions & 28 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,65 +34,65 @@
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>4b348cc28f0ec996322d4d1a62cfae300f77604e</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="NETStandard.Library" Version="2.1.0-prerelease.19379.2">
<Uri>https://github.com/dotnet/standard</Uri>
<Sha>56a4d43c963e533f5392c2c4f7b710f3ab98b5bd</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenFacades" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.GenFacades" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="2.4.1-beta.19408.13">
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="2.4.1-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.5.1-beta.19408.13">
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.5.1-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CoreFxTesting" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.CoreFxTesting" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Configuration" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Configuration" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="2.2.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="1.0.0-beta.19408.13">
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="1.0.0-beta.19365.4">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>524bb3e06ffd5b483a3c71a8f670b7a4bd2c232a</Sha>
<Sha>fb27fd4d8a2b67d4333e33d4b898c65171c9f3c1</Sha>
</Dependency>
<Dependency Name="optimization.windows_nt-x64.IBC.CoreFx" Version="99.99.99-master-20190807.1">
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>
Expand Down
21 changes: 11 additions & 10 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Opt-in repo features -->
<UsingToolMicrosoftNetCompilers>true</UsingToolMicrosoftNetCompilers>
<UsingToolIbcOptimization>true</UsingToolIbcOptimization>
<UsingToolSymbolUploader>true</UsingToolSymbolUploader>
<!-- Opt-out repo features -->
<UsingToolXliff>false</UsingToolXliff>
<!-- Paths used during restore -->
Expand All @@ -29,16 +30,16 @@
</PropertyGroup>
<PropertyGroup>
<!-- Arcade dependencies -->
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>2.4.1-beta.19408.13</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftDotNetXUnitConsoleRunnerPackageVersion>2.5.1-beta.19408.13</MicrosoftDotNetXUnitConsoleRunnerPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetRemoteExecutorPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetRemoteExecutorPackageVersion>
<MicrosoftDotNetBuildTasksFeedVersion>2.2.0-beta.19408.13</MicrosoftDotNetBuildTasksFeedVersion>
<MicrosoftDotNetVersionToolsTasksPackageVersion>1.0.0-beta.19408.13</MicrosoftDotNetVersionToolsTasksPackageVersion>
<MicrosoftDotNetApiCompatPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenFacadesPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetGenFacadesPackageVersion>
<MicrosoftDotNetXUnitExtensionsPackageVersion>2.4.1-beta.19365.4</MicrosoftDotNetXUnitExtensionsPackageVersion>
<MicrosoftDotNetXUnitConsoleRunnerPackageVersion>2.5.1-beta.19365.4</MicrosoftDotNetXUnitConsoleRunnerPackageVersion>
<MicrosoftDotNetBuildTasksPackagingPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetBuildTasksPackagingPackageVersion>
<MicrosoftDotNetRemoteExecutorPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetRemoteExecutorPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>2.2.0-beta.19365.4</MicrosoftDotNetBuildTasksFeedPackageVersion>
<MicrosoftDotNetVersionToolsTasksPackageVersion>1.0.0-beta.19365.4</MicrosoftDotNetVersionToolsTasksPackageVersion>
<!-- roslyn -->
<MicrosoftNetCompilersToolsetVersion>3.3.0-beta2-19367-02</MicrosoftNetCompilersToolsetVersion>
<!-- Core-setup dependencies -->
Expand Down
2 changes: 0 additions & 2 deletions eng/common/templates/job/execute-sdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
displayName: Run SDL tool
variables:
- group: DotNet-VSTS-Bot
pool:
name: Hosted VS2017
steps:
- checkout: self
clean: true
Expand Down
17 changes: 10 additions & 7 deletions eng/pipelines/corefx-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,19 @@ jobs:
- ${{ if ne(parameters.testScope, '') }}:
- _testScopeArg: -testscope ${{ parameters.testScope }}

- ${{ if ne(job._jobFramework, '')}}:
- _finalFrameworkArg: ${{ job._jobFramework }}

- ${{ if eq(parameters.isOfficialBuild, 'true') }}:
- _msbuildCommonParameters: /p:OfficialBuildId=$(Build.BuildNumber)
- _dotnetFeedUrl: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
- group: DotNet-Blob-Feed

- ${{ if eq(job.submitToHelix, 'true') }}:
- _archiveTestsParameter: /p:ArchiveTests=Tests
- ${{ if eq(parameters.isOfficialBuild, 'true') }}:
- group: DotNet-HelixApi-Access

- ${{ if ne(job.frameworkArg, '') }}:
- _finalFrameworkArg: ${{ job.frameworkArg }}

- _args: -configuration $(_BuildConfig) -ci -arch $(_architecture) $(_finalFrameworkArg) $(_archiveTestsParameter) ${{ job.buildExtraArguments }}
- _commonArguments: $(_args)

Expand Down Expand Up @@ -135,7 +137,7 @@ jobs:
- ${{ if eq(parameters.isOfficialBuild, 'true') }}:
- task: DotNetCoreCLI@2
displayName: Restore internal tools
condition: and(succeeded(), ne(variables['_skipRestoreInternalTools'], 'true'))
condition: ne(variables['_skipRestoreInternalTools'], 'true')
inputs:
command: restore
feedsToUse: config
Expand All @@ -159,7 +161,8 @@ jobs:

- ${{ if eq(job.submitToHelix, 'true') }}:
- ${{ if eq(parameters.isOfficialBuild, 'true') }}:
- script: $(_msbuildCommand) eng/publishTestAssets.proj
- script: $(_msbuildCommand) eng/publish.proj
/t:PublishTestAssets
/p:FilesToPublishPattern=$(Build.SourcesDirectory)/artifacts/helix/**/*.zip
/p:AccountKey=$(dotnetfeed-storage-access-key-1)
/p:ExpectedFeedUrl=$(_dotnetFeedUrl)
Expand All @@ -181,7 +184,7 @@ jobs:
- task: PublishBuildArtifacts@1
displayName: Publish test asset manifest to artifacts container
inputs:
pathToPublish: $(Build.SourcesDirectory)/artifacts/TestAssetsManifests
pathToPublish: $(Build.SourcesDirectory)/artifacts/AssetManifests
artifactName: $(Agent.Os)_$(Agent.JobName)
artifactType: container
condition: and(succeeded(), eq(variables['_publishTests'], 'true'))
Expand Down Expand Up @@ -211,7 +214,7 @@ jobs:
- task: PublishBuildArtifacts@1
displayName: Publish packages to artifacts container
inputs:
pathToPublish: $(Build.SourcesDirectory)/artifacts/packages
pathToPublish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)
artifactName: packages
artifactType: container
condition: and(succeeded(), ne(variables['_skipPublishPackages'], 'true'))
Loading

0 comments on commit cd11237

Please sign in to comment.