@@ -749,56 +749,13 @@ stages:
749749 includeForks : true
750750
751751 # Source build
752- - job : Source_Build
753- displayName : ' Test: Linux Source Build'
754- container : centos:7
755- pool :
756- vmImage : ' ubuntu-18.04'
757- variables :
758- LC_ALL : ' en_US.UTF-8'
759- LANG : ' en_US.UTF-8'
760- LANGUAGE : ' en_US.UTF-8'
761- DotNetCoreSdkDir : $(Agent.ToolsDirectory)/dotnet
762- # This isn't needed in the path because build does not need to _use_ global tools.
763- DOTNET_CLI_HOME : $(System.DefaultWorkingDirectory)
764- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT : true
765- steps :
766- - script : |
767- source eng/common/native/common-library.sh
768- mkdir -p $(System.DefaultWorkingDirectory)/.tools
769- GetFile https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 $(System.DefaultWorkingDirectory)/.tools/jq
770- chmod +x $(System.DefaultWorkingDirectory)/.tools/jq
771- echo "##vso[task.prependpath]$(System.DefaultWorkingDirectory)/.tools"
772- displayName: Install jq
773- - ${{ if ne(variables['System.TeamProject'], 'public') }} :
774- - task : Bash@3
775- displayName : Setup Private Feeds Credentials
776- inputs :
777- filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
778- arguments : $(Build.SourcesDirectory)/NuGet.config $Token
779- env :
780- Token : $(dn-bot-dnceng-artifact-feeds-rw)
781- - script : ./eng/scripts/ci-source-build.sh --ci --nobl --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false $(_InternalRuntimeDownloadArgs)
782- displayName : Run ci-source-build.sh
783- - task : PublishBuildArtifacts@1
784- displayName : Upload logs
785- condition : always()
786- continueOnError : true
787- inputs :
788- pathtoPublish : artifacts/log/
789- artifactName : Source_Build_Logs
790- artifactType : Container
791- parallel : true
792- - task : PublishBuildArtifacts@1
793- displayName : Upload package artifacts
794- # Only capture source build artifacts in PRs for the sake of inspecting
795- # changes that impact source-build. The artifacts from this build pipeline are never actually used.
796- condition : and(succeeded(), in(variables['Build.Reason'], 'PullRequest'))
797- inputs :
798- pathtoPublish : artifacts/packages/
799- artifactName : Source_Build_Packages
800- artifactType : Container
801- parallel : true
752+ - template : /eng/common/templates/job/source-build.yml
753+ parameters :
754+ platform :
755+ name : ' Managed'
756+ container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-f39df28-20191023143754'
757+ buildScript : ' ./eng/build.sh'
758+ skipPublishValidation : true
802759
803760 # Publish to the BAR
804761 - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
@@ -827,7 +784,7 @@ stages:
827784 - Linux_musl_arm_build
828785 - Linux_musl_arm64_build
829786 # In addition to the dependencies above, ensure the build was successful overall.
830- - Source_Build
787+ - Source_Build_Managed
831788 pool :
832789 vmImage : vs2017-win2016
833790 publishUsingPipelines : ${{ variables._PublishUsingPipelines }}
0 commit comments