Skip to content

Commit 6b2eca8

Browse files
authored
restore old yml for internal pipeline so we can publish nuget again to devdiv stream (dotnet#344)
1 parent 43fe8b8 commit 6b2eca8

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

build/vsts-internal-nuget.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
################################################################################
2+
# ML.NET's official, signed build
3+
################################################################################
4+
5+
resources:
6+
containers:
7+
- container: LinuxContainer
8+
image: microsoft/dotnet-buildtools-prereqs:centos-7-b46d863-20180719033416
9+
10+
phases:
11+
12+
################################################################################
13+
- phase: Windows_x64
14+
################################################################################
15+
variables:
16+
BuildConfig: Release
17+
OfficialBuildId: $(BUILD.BUILDNUMBER)
18+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
19+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
20+
DOTNET_MULTILEVEL_LOOKUP: 0
21+
_SignType: real
22+
_UseEsrpSigning: true
23+
_TeamName: DotNetCore
24+
queue:
25+
name: dotnet-internal-temp
26+
demands:
27+
- agent.os -equals Windows_NT
28+
steps:
29+
30+
# Build both native and managed assets.
31+
- script: ./build.cmd -$(BuildConfig)
32+
displayName: Build
33+
34+
# Terminate all dotnet build processes.
35+
- script: $(Build.SourcesDirectory)/Tools/dotnetcli/dotnet.exe build-server shutdown
36+
displayName: Dotnet Server Shutdown
37+
38+
################################################################################
39+
- phase: Package
40+
################################################################################
41+
dependsOn:
42+
- Windows_x64
43+
variables:
44+
BuildConfig: Release
45+
OfficialBuildId: $(BUILD.BUILDNUMBER)
46+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
47+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
48+
DOTNET_MULTILEVEL_LOOKUP: 0
49+
_TeamName: DotNetCore
50+
_NuGetFeedUrl: https://dotnet.myget.org/F/dotnet-core/api/v2/package
51+
_SymwebSymbolServerPath: https://microsoft.artifacts.visualstudio.com/DefaultCollection
52+
_MsdlSymbolServerPath: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection
53+
queue:
54+
name: dotnet-internal-temp
55+
demands:
56+
- agent.os -equals Windows_NT
57+
steps:
58+
59+
- script: ./build.cmd -buildPackages
60+
displayName: Create Packages
61+
62+
- task: NuGetCommand@2
63+
displayName: Publish Packages to VSTS Feed
64+
inputs:
65+
command: push
66+
packagesToPush: $(Build.SourcesDirectory)/bin/packages/**/*.nupkg
67+
nuGetFeedType: internal
68+
feedPublish: dotnet-internal
69+
70+
# Terminate all dotnet build processes.
71+
- script: $(Build.SourcesDirectory)/Tools/dotnetcli/dotnet.exe build-server shutdown
72+
displayName: Dotnet Server Shutdown

0 commit comments

Comments
 (0)