Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6afa56

Browse files
authored
save and publish log from package publishing step (dotnet#6141) (dotnet#6142)
save and publish log from package publishing step
1 parent91e93eb commitf6afa56

File tree

74 files changed

+4795
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+4795
-25
lines changed

‎.gitignore‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
/release
88
/debug
99
/Proto
10+
packages/
1011

11-
# auto-generated during the build
12-
global.json
12+
/tests/scripts/current
1313

1414
# Patches that may have been generated by scripts.
1515
# (These aren't generally useful to commit directly; if anything, they should be applied.)

‎.vsts-signed.yaml‎

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
variables:
2+
-name:PB_PublishBlobFeedUrl
3+
value:https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
4+
-group:DotNet-Blob-Feed
5+
-name:PB_PublishBlobFeedKey
6+
value:$(dotnetfeed-storage-access-key-1)
7+
18
jobs:
29
-job:Full_Signed
310
pool:
411
name:VSEng-MicroBuildVS2017
512
timeoutInMinutes:300
613
variables:
7-
MSBuildConfiguration:'Release'
14+
BuildConfiguration:'Release'
815
steps:
916
# Install Signing Plugin
1017
-task:ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
@@ -29,22 +36,51 @@ jobs:
2936
displayName:Publish nightly package to MyGet
3037
inputs:
3138
scriptName:'setup\publish-assets.ps1'
32-
arguments:'-binariesPath $(MSBuildConfiguration) -branchName $(Build.SourceBranch) -apiKey $(FSharp.MyGetApiKey)'
39+
arguments:'-binariesPath $(BuildConfiguration) -branchName $(Build.SourceBranch) -apiKey $(FSharp.MyGetApiKey)'
3340
condition:and(succeeded(), contains(variables['PB_PublishType'], 'myget'))
3441

35-
# Publish packages to Azure Blob Storage
42+
# Package publish
43+
-task:CmdLine@1
44+
displayName:Restore package publishing
45+
inputs:
46+
filename:'.nuget\NuGet.exe'
47+
arguments:'restore packages.config -PackagesDirectory packages -Source https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json'
48+
condition:and(succeeded(), contains(variables['PB_PublishType'], 'blob'))
3649
-task:MSBuild@1
3750
displayName:Publish packages to Azure Blob Storage
3851
inputs:
3952
solution:PublishToBlob.proj
40-
msbuildArguments:'/t:Build /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:AccountKey=$(PB_PublishBlobFeedKey) /p:ManifestBranch=$(SourceBranch) /p:ManifestCommit=$(SourceVersion) /p:ManifestBuildId=$(OfficialBuildId)'
53+
msbuildArguments:'/t:Build /p:Configuration=$(BuildConfiguration) /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:AccountKey=$(PB_PublishBlobFeedKey) /p:ManifestRepouri=$(Build.Repository.Uri) /p:ManifestBranch=$(Build.SourceBranch) /p:ManifestCommit=$(Build.SourceVersion) /p:ManifestBuildId=$(Build.BuildNumber) /bl:$(Build.SourcesDirectory)/$(BuildConfiguration)/log/publish.binlog'
54+
condition:and(succeeded(), contains(variables['PB_PublishType'], 'blob'))
55+
-task:PublishBuildArtifacts@1
56+
displayName:Publish publishing bin log
57+
inputs:
58+
PathtoPublish:'$(Build.SourcesDirectory)/$(BuildConfiguration)/log'
59+
ArtifactName:'Publish_bin_log'
60+
publishLocation:Container
61+
continueOnError:true
62+
condition:and(succeeded(), contains(variables['PB_PublishType'], 'blob'))
63+
-task:CopyFiles@2
64+
displayName:Gather Asset Manifests
65+
inputs:
66+
SourceFolder:'$(Build.SourcesDirectory)/artifacts/log/$(BuildConfiguration)/AssetManifest'
67+
TargetFolder:'$(Build.StagingDirectory)/AssetManifests'
68+
continueOnError:true
69+
condition:and(succeeded(), contains(variables['PB_PublishType'], 'blob'))
70+
-task:PublishBuildArtifacts@1
71+
displayName:Push Asset Manifests
72+
inputs:
73+
PathtoPublish:'$(Build.StagingDirectory)/AssetManifests'
74+
PublishLocation:Container
75+
ArtifactName:AssetManifests
76+
continueOnError:true
4177
condition:and(succeeded(), contains(variables['PB_PublishType'], 'blob'))
4278

4379
# Create static drop
4480
-task:PublishBuildArtifacts@1
4581
displayName:Create static drop
4682
inputs:
47-
PathtoPublish:'$(MSBuildConfiguration)'
83+
PathtoPublish:'$(BuildConfiguration)'
4884
ArtifactName:'$(Build.BuildNumber)'
4985
publishLocation:FilePath
5086
TargetPath:'$(DropRoot)\$(Build.DefinitionName)\$(Build.SourceBranchName)'
@@ -58,7 +94,7 @@ jobs:
5894
inputs:
5995
SymbolsPath:'$(DropRoot)\$(Build.DefinitionName)\$(Build.SourceBranchName)\$(Build.BuildNumber)\Symbols'
6096
SearchPattern:'**\*.dll;**\*.exe;**\*.pdb'
61-
SymbolsFolder:'$(Build.SourcesDirectory)\$(MSBuildConfiguration)'
97+
SymbolsFolder:'$(Build.SourcesDirectory)\$(BuildConfiguration)'
6298
TreatNotIndexedAsWarning:true
6399
SymbolsProduct:'$(Build.DefinitionName)'
64100
SymbolsVersion:'$(Build.BuildNumber)'
@@ -69,7 +105,7 @@ jobs:
69105
-task:ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@1
70106
displayName:Upload VSTS Drop
71107
inputs:
72-
DropFolder:'$(Build.SourcesDirectory)\$(MSBuildConfiguration)\insertion'
108+
DropFolder:'$(Build.SourcesDirectory)\$(BuildConfiguration)\insertion'
73109
condition:and(succeeded(), contains(variables['PB_PublishType'], 'vsts'))
74110

75111
# Execute cleanup tasks
@@ -94,3 +130,11 @@ jobs:
94130
sourcePath:'$(DropRoot)\$(Build.DefinitionName)\$(Build.SourceBranchName)\$(Build.BuildNumber)\Symbols'
95131
usePat:false
96132
condition:and(succeeded(), contains(variables['PB_PublishType'], 'symweb'))
133+
134+
-template:/eng/common/templates/job/publish-build-assets.yml
135+
parameters:
136+
dependsOn:
137+
-Full_Signed
138+
pool:
139+
vmImage:vs2017-win2016
140+
enablePublishBuildArtifacts:true

‎Makefile‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ all: proto restore build test
77
tools:
88
$(CURDIR)/scripts/dotnet-install.sh --version$(DotNetVersion) --install-dir$(CURDIR)/Tools/dotnet20
99

10-
global.json: tools
11-
echo {\"sdk\": {\"version\":\"$(DotNetVersion)\" } }>global.json
12-
13-
proto: global.json
10+
proto: tools
1411
$(DotNetExe) build-server shutdown
1512
$(DotNetExe) restore src/buildtools/buildtools.proj
1613
$(DotNetExe) restore src/fsharp/FSharp.Build/FSharp.Build.fsproj
@@ -19,7 +16,7 @@ proto: global.json
1916
$(DotNetExe) build src/fsharp/FSharp.Build/FSharp.Build.fsproj -f netstandard2.0 -c Proto
2017
$(DotNetExe) build src/fsharp/Fsc/Fsc.fsproj -f netcoreapp2.1 -c Proto
2118

22-
restore: global.json
19+
restore:
2320
$(DotNetExe) restore src/fsharp/FSharp.Core/FSharp.Core.fsproj
2421
$(DotNetExe) restore src/fsharp/FSharp.Build/FSharp.Build.fsproj
2522
$(DotNetExe) restore src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj

‎NuGet.Config‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
<solution>
44
<addkey="disableSourceControlIntegration"value="true" />
55
</solution>
6+
<!-- Only specify feed for Arcade SDK (see https://github.com/Microsoft/msbuild/issues/2982)-->
7+
<packageSources>
8+
<clear />
9+
<addkey="dotnet-core"value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
10+
<addkey="nuget.org"value="https://api.nuget.org/v3/index.json" />
11+
</packageSources>
12+
<disabledPackageSources>
13+
<clear />
14+
</disabledPackageSources>
615
</configuration>

‎PublishToBlob.proj‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,33 @@
1010
<PropertyGroup>
1111
<FeedTasksPackage>Microsoft.DotNet.Build.Tasks.Feed</FeedTasksPackage>
1212
<!-- This version should be kept in sync with `packages.config`-->
13-
<FeedTasksPackageVersion>2.1.0-prerelease-02419-02</FeedTasksPackageVersion>
13+
<FeedTasksPackageVersion>2.2.0-beta.19066.1</FeedTasksPackageVersion>
1414
</PropertyGroup>
1515

1616
<ImportProject="$(MSBuildThisFileDirectory)packages\$(FeedTasksPackage).$(FeedTasksPackageVersion)\build\$(FeedTasksPackage).targets" />
1717

1818
<ItemGroup>
19-
<!--this should pick up both *.nupkg and *.symbols.nupkg-->
20-
<NuGetPackagesInclude="$(MSBuildThisFileDirectory)$(Configuration)\artifacts\Microsoft.FSharp.Compiler.*.nupkg" />
19+
<!--the string '-rtm-' is important, because that's the package with a per-build unique version number-->
20+
<NuGetPackagesInclude="$(MSBuildThisFileDirectory)$(Configuration)\artifacts\Microsoft.FSharp.Compiler.*-rtm-*.nupkg" />
2121
</ItemGroup>
2222

23+
<PropertyGroup>
24+
<ArtifactsLogDir>$(MSBuildThisFileDirectory)artifacts\log\$(Configuration)\</ArtifactsLogDir>
25+
<PlatformCondition="'$(Platform)' == ''">AnyCPU</Platform>
26+
<PlatformNameCondition="'$(PlatformName)' == ''">$(Platform)</PlatformName>
27+
<AssetManifestFilePath>$(ArtifactsLogDir)AssetManifest\$(OS)-$(PlatformName).xml</AssetManifestFilePath>
28+
</PropertyGroup>
29+
2330
<TargetName="Build">
2431
<PushToBlobFeedExpectedFeedUrl="$(ExpectedFeedUrl)"
2532
AccountKey="$(AccountKey)"
2633
ItemsToPush="@(NuGetPackages)"
27-
Overwrite="$(PublishOverwrite)"
34+
ManifestBuildData="Location=$(ExpectedFeedUrl)"
35+
ManifestRepoUri="$(ManifestRepoUri)"
2836
ManifestBranch="$(ManifestBranch)"
2937
ManifestBuildId="$(ManifestBuildId)"
3038
ManifestCommit="$(ManifestCommit)"
31-
ManifestName="fsharp"
32-
SkipCreateManifest="false" />
39+
AssetManifestPath="$(AssetManifestFilePath)" />
3340
</Target>
3441

3542
</Project>

‎build.cmd‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,6 @@ if not exist %_ngenexe% echo Error: Could not find ngen.exe. && goto :failure
608608

609609
echo ---------------- Done with prepare, starting package restore ----------------
610610

611-
:: create a global.json
612-
set /pDOTNET_TOOLS_VERSION=<"%~dp0DotnetCLIToolsVersion.txt"
613-
echo {"sdk": {"version":"%DOTNET_TOOLS_VERSION%" } }>global.json
614-
615611
:: Restore the Tools directory
616612
call"%~dp0init-tools.cmd"
617613
set_dotnetexe=%~dp0Tools\dotnet20\dotnet.exe

‎eng/common/CIBuild.cmd‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echooff
2+
powershell -ExecutionPolicy ByPass -NoProfile -command"&"""%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci%*"

‎eng/common/PublishBuildAssets.cmd‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echooff
2+
powershell -ExecutionPolicy ByPass -NoProfile -command"&"""%~dp0sdk-task.ps1""" -msbuildEngine dotnet -restore -projects PublishBuildAssets.proj -ci%*"
3+
exit /b%ErrorLevel%
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--
2+
This MSBuild file is intended to be used as the body of the default
3+
publishing release pipeline. The release pipeline will use this file
4+
to invoke the PushToStaticFeed task that will read the build asset
5+
manifest and publish the assets described in the manifest to
6+
informed target feeds.
7+
-->
8+
<ProjectSdk="Microsoft.NET.Sdk">
9+
<PropertyGroup>
10+
<TargetFramework>netcoreapp2.1</TargetFramework>
11+
</PropertyGroup>
12+
13+
<ImportProject="$(MSBuildThisFileDirectory)MicrosoftDotNetBuildTasksFeedVersion.props" />
14+
<ImportProject="$(NuGetPackageRoot)microsoft.dotnet.build.tasks.feed\$(MicrosoftDotNetBuildTasksFeedVersion)\build\Microsoft.DotNet.Build.Tasks.Feed.targets" />
15+
16+
<TargetName="PublishToFeed">
17+
<ErrorCondition="'$(TargetStaticFeed)' == ''"Text="TargetStaticFeed: Target feed for publishing assets wasn't provided." />
18+
<ErrorCondition="'$(AccountKeyToStaticFeed)' == ''"Text="AccountKeyToStaticFeed: Account key for target feed wasn't provided." />
19+
<ErrorCondition="'$(FullPathAssetManifest)' == ''"Text="Full path to asset manifest wasn't provided." />
20+
<ErrorCondition="'$(FullPathBlobBasePath)' == '' AND '$(FullPathPackageBasePath)' == ''"Text="A valid full path to BlobBasePath of PackageBasePath is required." />
21+
22+
<PushArtifactsInManifestToFeed
23+
ExpectedFeedUrl="$(TargetStaticFeed)"
24+
AccountKey="$(AccountKeyToStaticFeed)"
25+
Overwrite="$(OverrideAssetsWithSameName)"
26+
PassIfExistingItemIdentical="$(PassIfExistingItemIdentical)"
27+
MaxClients="$(MaxParallelUploads)"
28+
UploadTimeoutInMinutes="$(MaxUploadTimeoutInMinutes)"
29+
AssetManifestPath="$(FullPathAssetManifest)"
30+
BlobAssetsBasePath="$(FullPathBlobBasePath)"
31+
PackageAssetsBasePath="$(FullPathPackageBasePath)" />
32+
</Target>
33+
34+
<ItemGroup>
35+
<PackageReferenceInclude="Microsoft.DotNet.Build.Tasks.Feed"Version="$(MicrosoftDotNetBuildTasksFeedVersion)" />
36+
</ItemGroup>
37+
</Project>

‎eng/common/README.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#Don't touch this folder
2+
3+
uuuuuuuuuuuuuuuuuuuu
4+
u" uuuuuuuuuuuuuuuuuu "u
5+
u" u$$$$$$$$$$$$$$$$$$$$u "u
6+
u" u$$$$$$$$$$$$$$$$$$$$$$$$u "u
7+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
8+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
9+
u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
10+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
11+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
12+
$ $$$" ... "$... ...$" ... "$$$ ... "$$$ $
13+
$ $$$u `"$$$$$$$ $$$ $$$$$ $$ $$$ $$$ $
14+
$ $$$$$$uu "$$$$ $$$ $$$$$ $$ """ u$$$ $
15+
$ $$$""$$$ $$$$ $$$u "$$$" u$$ $$$$$$$$ $
16+
$ $$$$....,$$$$$..$$$$$....,$$$$..$$$$$$$$ $
17+
$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
18+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
19+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
20+
"u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
21+
"u "$$$$$$$$$$$$$$$$$$$$$$$$" u"
22+
"u "$$$$$$$$$$$$$$$$$$$$" u"
23+
"u """""""""""""""""" u"
24+
""""""""""""""""""""
25+
26+
!!! Changes made in this directory are subject to being overwritten by automation !!!
27+
28+
The files in this directory are shared by all Arcade repos and managed by automation. If you need to make changes to these files, open an issue or submit a pull request tohttps://github.com/dotnet/arcade first.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp