[netcore] Move to new arcade post build using yaml stages (mono/mono#16966)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 20 Sep 2019 15:27:15 +0000 (17:27 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 15:27:15 +0000 (17:27 +0200)
This is required by the newer arcade builds.
We can simplify our scripts since we no longer need the special publishwitharcade.proj.

Added copyright and license to the .nuspecs since the new arcade validation now
verifies this against a set of Microsoft policies.

We also need to make the .nupkg pre-release by appending the -preview suffix as stable versions are not permitted in non-stable feeds.

Commit migrated from https://github.com/mono/mono/commit/6bc988b0870b7d4d56a73c13b45fe5158f81c64d

eng/empty.csproj [moved from eng/empty.proj with 100% similarity]
eng/publishwitharcade.proj [deleted file]
src/mono/netcore/Makefile
src/mono/netcore/metapackage-llvm.nuspec
src/mono/netcore/metapackage.nuspec
src/mono/netcore/runtime-llvm.nuspec
src/mono/netcore/runtime.nuspec

similarity index 100%
rename from eng/empty.proj
rename to eng/empty.csproj
diff --git a/eng/publishwitharcade.proj b/eng/publishwitharcade.proj
deleted file mode 100644 (file)
index bbadd12..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<Project DefaultTargets="PublishPackages">
-
-  <!-- TODO: move properties imported from here into a common props file -->
-  <!-- <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> -->
-
-  <!-- Use an explicit SDK import so that arcade uses the build
-       configuration computed in dir.common.props. -->
-  <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
-
-  <Import Project="$(MSBuildThisFileDirectory)\..\.packages\microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
-
-  <PropertyGroup>
-    <!-- Set the TargetFramework just to make the SDK happy -->
-    <TargetFramework>net462</TargetFramework>
-  </PropertyGroup>
-
-  <Target Name="PublishPackages">
-
-    <ItemGroup>
-      <PackagesToPublish Include="$(MSBuildThisFileDirectory)\..\artifacts\*.nupkg" />
-    </ItemGroup>
-
-    <ItemGroup>
-      <ItemsToPushToBlobFeed Include="@(PackagesToPublish)" />
-    </ItemGroup>
-
-    <Error Condition=" '$(AzureFeedUrl)' == '' " Text="AzureFeedUrl must be set" />
-    <Error Condition=" '$(AzureAccountKey)' == '' " Text="AzureAccountKey must be set" />
-    <Error Condition=" '$(BUILD_REPOSITORY_URI)' == '' " Text="BUILD_REPOSITORY_URI must be set" />
-    <Error Condition=" '$(BUILD_SOURCEBRANCH)' == '' " Text="BUILD_SOURCEBRANCH must be set" />
-    <Error Condition=" '$(BUILD_BUILDNUMBER)' == '' " Text="BUILD_BUILDNUMBER must be set" />
-    <Error Condition=" '$(BUILD_SOURCEVERSION)' == '' " Text="BUILD_SOURCEVERSION must be set" />
-
-    <PropertyGroup>
-      <AssetManifestFilePath>$(ArtifactsLogDir)AssetManifest\$(AssetManifest)</AssetManifestFilePath>
-    </PropertyGroup>
-
-    <Message Importance="Low" Text="BUILD_REPOSITORY_URI: $(BUILD_REPOSITORY_URI)" />
-
-    <PushToBlobFeed ExpectedFeedUrl="$(AzureFeedUrl)"
-                    AccountKey="$(AzureAccountKey)"
-                    ItemsToPush="@(ItemsToPushToBlobFeed)"
-                    ManifestBuildData="Location=$(AzureFeedUrl)"
-                    ManifestRepoUri="$(BUILD_REPOSITORY_URI)"
-                    ManifestBranch="$(BUILD_SOURCEBRANCH)"
-                    ManifestBuildId="$(BUILD_BUILDNUMBER)"
-                    ManifestCommit="$(BUILD_SOURCEVERSION)"
-                    AssetManifestPath="$(AssetManifestFilePath)" />
-  </Target>
-
-</Project>
index 34e71eb..d26f80d 100644 (file)
@@ -52,7 +52,7 @@ TEST_ASSETS_PATH := corefx-tests/$(NETCORETESTS_VERSION)/$(TESTS_PLATFORM)/netco
 
 # used to calculate exact version number for generating nupkg
 BLAME = $(shell git blame ../configure.ac | grep AC_INIT | cut -f1 -d' ')
-VERSTUB = .$(shell git rev-list --count $(BLAME)..HEAD)
+VERSTUB = .$(shell git rev-list --count $(BLAME)..HEAD)-preview
 
 all: bcl
 
index cb0f161..e1babad 100644 (file)
@@ -6,7 +6,9 @@
         <description>Internal implementation package not meant for direct consumption.  Please do not reference directly. 
 The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
         <authors>Microsoft</authors>
+        <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
         <projectUrl>https://www.mono-project.com/</projectUrl>
+        <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
         <dependencies>
             <dependency id="runtime.linux-x64.Microsoft.NETCore.Runtime.MonoLLVM" version="$VERSION$" />
         </dependencies>
index 97d722a..55fce5b 100644 (file)
@@ -6,7 +6,9 @@
         <description>Internal implementation package not meant for direct consumption.  Please do not reference directly. 
 The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
         <authors>Microsoft</authors>
+        <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
         <projectUrl>https://www.mono-project.com/</projectUrl>
+        <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
         <dependencies>
             <dependency id="runtime.win-x64.Microsoft.NETCore.Runtime.Mono" version="$VERSION$" />
             <dependency id="runtime.osx-x64.Microsoft.NETCore.Runtime.Mono" version="$VERSION$" />
index 558a5c3..0939580 100644 (file)
@@ -6,7 +6,9 @@
         <description>Internal implementation package not meant for direct consumption.  Please do not reference directly. 
 The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
         <authors>Microsoft</authors>
+        <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
         <projectUrl>https://www.mono-project.com/</projectUrl>
+        <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
     </metadata>
     <files>
         <file src="System.Private.CoreLib\bin\$COREARCH$\System.Private.CoreLib.dll" target="runtimes\$RID$\native" />
index 2cbf5f6..b351c67 100644 (file)
@@ -6,7 +6,9 @@
         <description>Internal implementation package not meant for direct consumption.  Please do not reference directly. 
 The Mono runtime, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes.</description>
         <authors>Microsoft</authors>
+        <copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
         <projectUrl>https://www.mono-project.com/</projectUrl>
+        <licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
     </metadata>
     <files>
         <file src="System.Private.CoreLib\bin\$COREARCH$\System.Private.CoreLib.dll" target="runtimes\$RID$\native" />