Break up "DropArtifacts" build variable into "DropPackages" and "DropBinaries".
Pushes all packages to dotnet-core blob feed.
Fix macOS test failures by making sure python 2.7.10 /usr/bin is in the path first.
Add -publish to cipack.cmd so the packages are published.
demands:
- agent.os -equals Windows_NT
variables:
- _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
- _SOSNETCorePath: $(Build.SourcesDirectory)/artifacts/bin/SOS.NETCore/Release/netstandard2.0/publish
- _TeamName: DotNetCore
+ - group: DotNet-Blob-Feed
+ - group: DotNet-MyGet-Publish
+ - name: _PublishBlobFeedUrl
+ value: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
+ - name: _SOSNETCorePath
+ value: $(Build.SourcesDirectory)/artifacts/bin/SOS.NETCore/Release/netstandard2.0/publish
+ - name: _TeamName
+ value: DotNetCore
steps:
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
/p:DotNetSignType=$(SignType)
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
/p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl)
- /p:DotNetPublishToBlobFeed=false
+ /p:DotNetPublishToBlobFeed=true
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
continueOnError: true
condition: succeeded()
+ - task: PublishBuildArtifacts@1
+ displayName: Publish Package Artifacts
+ inputs:
+ publishLocation: Container
+ pathtoPublish: '$(Build.SourcesDirectory)/artifacts/packages'
+ artifactName: packages
+ condition: succeeded()
+
# Optionally drop the artifacts on a share
- task: PublishBuildArtifacts@1
- displayName: Drop Binaries
+ displayName: Drop Packages
inputs:
publishLocation: FilePath
- pathtoPublish: '$(Build.SourcesDirectory)\artifacts\bin'
- artifactName: bin
+ pathtoPublish: '$(Build.SourcesDirectory)/artifacts/packages'
+ artifactName: _packages
targetPath: '$(DropRoot)\DotNetCore\$(Build.DefinitionName)\$(Build.BuildNumber)'
- condition: and(succeeded(), eq(variables['DropArtifacts'], 'true'))
+ continueOnError: true
+ condition: eq(variables['DropPackages'], 'true')
- task: PublishBuildArtifacts@1
- displayName: Drop Packages
+ displayName: Drop Binaries
inputs:
publishLocation: FilePath
- pathtoPublish: '$(Build.SourcesDirectory)\artifacts\packages'
- artifactName: packages
+ pathtoPublish: '$(Build.SourcesDirectory)/artifacts/bin'
+ artifactName: _bin
targetPath: '$(DropRoot)\DotNetCore\$(Build.DefinitionName)\$(Build.BuildNumber)'
- condition: and(succeeded(), eq(variables['DropArtifacts'], 'true'))
-
- # Optionally publish the packages to a blob feed
-
- - task: NuGetCommand@2
- displayName: Publish TestHelpers to MyGet dotnet-buildtools feed
- inputs:
- command: custom
- arguments: 'push $(Build.SourcesDirectory)\artifacts\packages\Release\Shipping\Microsoft.Diagnostic.TestHelpers.*.nupkg -ApiKey $(dotnetfeed-storage-access-key-1) -Source $(_PublishBlobFeedUrl)'
- condition: and(succeeded(), eq(variables['PushPackages'], 'true'))
+ continueOnError: true
+ condition: eq(variables['DropBinaries'], 'true')
- task: PublishBuildArtifacts@1
- displayName: Publish Logs to VSTS
+ displayName: Publish Logs Artifacts
inputs:
- pathtoPublish: '$(Build.SourcesDirectory)/artifacts/log'
publishLocation: Container
+ pathtoPublish: '$(Build.SourcesDirectory)/artifacts/log'
artifactName: Logs_Packaging_Signing
continueOnError: true
condition: always()
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
- <VersionPrefix>1.0.1</VersionPrefix>
- <PreReleaseVersionLabel>dev</PreReleaseVersionLabel>
+ <VersionPrefix>1.0.2</VersionPrefix>
+ <PreReleaseVersionLabel>preview3</PreReleaseVersionLabel>
<!-- Opt-out repo features -->
<UsingToolXliff>false</UsingToolXliff>
echo $NUGET_PACKAGES
-# Resolve python-version to use
-if [ "$PYTHON" == "" ] ; then
- if ! PYTHON=$(command -v python2.7 || command -v python2 || command -v python)
- then
- echo "Unable to locate build-dependency python2.x!" 1>&2
- exit 1
- fi
-fi
-
-# Validate python-dependency. Useful in case of explicitly set option.
-if ! command -v $PYTHON > /dev/null
-then
- echo "Unable to locate build-dependency python2.x ($PYTHON)!" 1>&2
- exit 1
-fi
-
-echo $PYTHON
-
__RootBinDir=$__ProjectRoot/artifacts
__BinDir=$__RootBinDir/bin/$__BuildOS.$__BuildArch.$__BuildType
__LogDir=$__RootBinDir/log/$__BuildOS.$__BuildArch.$__BuildType
echo "Cannot find the lldb library. Try installing Xcode."
exit 1
fi
+
+ # Workaround bad python version in /usr/local/bin/python2.7 on lab machines
+ export PATH=/usr/bin:$PATH
+ which python
+ python --version
fi
# Build native components
displayName: Build / Test
condition: succeeded()
- # Internal only build steps (until publishing artifacts in public CI is supported)
- - ${{ if ne(variables['System.TeamProject'], 'public') }}:
- - task: PublishBuildArtifacts@1
- displayName: Upload Artifacts
- inputs:
- pathtoPublish: '$(Build.SourcesDirectory)/artifacts/$(_PublishArtifacts)'
- artifactName: $(_PhaseName)_$(Agent.JobName)
- condition: and(succeeded(), ne(variables['_PublishArtifacts'], ''))
+ - task: PublishBuildArtifacts@1
+ displayName: Upload Artifacts
+ inputs:
+ pathtoPublish: '$(Build.SourcesDirectory)/artifacts/$(_PublishArtifacts)'
+ artifactName: $(_PhaseName)_$(Agent.JobName)
+ condition: and(succeeded(), ne(variables['_PublishArtifacts'], ''))
- task: CopyFiles@2
displayName: Gather Build Logs
@echo off
-powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0common\Build.ps1""" -restore -sign -pack -ci %*"
+powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0common\Build.ps1""" -restore -sign -pack -publish -ci %*"
exit /b %ErrorLevel%
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RuntimeFrameworkVersion>2.1.0</RuntimeFrameworkVersion>
- <!-- Don't pack until ship engineering is done. Currently causing the official job to fail.
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
- -->
<PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64</PackAsToolShimRuntimeIdentifiers>
- <!-- The package version needs to be hard coded as a stable version so "dotnet tool install -g dotnet-dump" works -->
+
+ <!-- The package version needs to be hard coded as a stable version so "dotnet tool install -g dotnet-dump" works
<Version>$(VersionPrefix)</Version>
<PackageVersion>$(VersionPrefix)</PackageVersion>
+ -->
+
<ToolCommandName>dotnet-dump</ToolCommandName>
<RootNamespace>Microsoft.Diagnostic.Tools.Dump</RootNamespace>
<Description>Diagnostic dump collect and analyze tool</Description>
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64</PackAsToolShimRuntimeIdentifiers>
- <!-- The package version needs to be hard coded as a stable version so "dotnet tool install -g dotnet-sos" works -->
+
+ <!-- The package version needs to be hard coded as a stable version so "dotnet tool install -g dotnet-sos" works
<Version>$(VersionPrefix)</Version>
<PackageVersion>$(VersionPrefix)</PackageVersion>
+ -->
+
<ToolCommandName>dotnet-sos</ToolCommandName>
<RootNamespace>Microsoft.Diagnostics.Tools.SOS</RootNamespace>
<Description>Diagnostic SOS installer</Description>