From: Sven Boemer Date: Mon, 7 Jan 2019 15:56:04 +0000 (-0800) Subject: Fix missing project error in official build (#21767) X-Git-Tag: accepted/tizen/unified/20190422.045933~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0d778417449b2e44ba2fedacd3046f1af755744;p=platform%2Fupstream%2Fcoreclr.git Fix missing project error in official build (#21767) In response to https://github.com/dotnet/arcade/pull/1567. This uses an empty project to work around the new behavior that requires a project file even for restore operations. --- diff --git a/eng/build-job.yml b/eng/build-job.yml index 24c7de8..dfecdc5 100644 --- a/eng/build-job.yml +++ b/eng/build-job.yml @@ -75,7 +75,7 @@ jobs: # Sign on Windows - ${{ if and(ne(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest'), eq(parameters.osGroup, 'Windows_NT')) }}: - - script: powershell eng\common\build.ps1 -ci -sign -restore -configuration:$(buildConfig) -warnaserror:0 /p:ArcadeBuild=true /p:OfficialBuild=true /p:BuildOS=$(osGroup) /p:BuildArch=$(archType) /p:BuildType=$(buildConfig) /p:DotNetSignType=%_SignType% + - script: powershell eng\common\build.ps1 -ci -sign -restore -configuration:$(buildConfig) -warnaserror:0 /p:ArcadeBuild=true /p:OfficialBuild=true /p:BuildOS=$(osGroup) /p:BuildArch=$(archType) /p:BuildType=$(buildConfig) /p:DotNetSignType=%_SignType% -projects $(Build.SourcesDirectory)\eng\empty.proj displayName: Sign Binaries - task: PublishBuildArtifacts@1 @@ -115,7 +115,7 @@ jobs: - ${{ if ne(parameters.osGroup, 'Windows_NT') }}: - script: ./build-packages.sh -BuildArch=$(archType) -BuildType=$(buildConfigUpper) $(crossPackagesArg) -OfficialBuildId=$(Build.BuildNumber) $(portableBuildArg) displayName: Build packages - - script: ./eng/common/build.sh /p:DotNetPublishToBlobFeed=true --ci --restore + - script: ./eng/common/build.sh /p:DotNetPublishToBlobFeed=true --ci --restore --projects $(Build.SourcesDirectory)/eng/empty.proj displayName: Restore blob feed tasks - script: ./eng/common/msbuild.sh --ci src/publishwitharcade.proj /p:__BuildType=$(buildConfigUpper) /p:__BuildArch=$(archType) /p:OSIdentifier=$(osIdentifier) /p:AzureFeedUrl=$(dotnetfeedUrl) /p:AzureAccountKey=$(dotnetfeedPAT) displayName: Publish packages to blob feed @@ -126,7 +126,7 @@ jobs: # TODO: pass publish feed url and access token in from the internal pipeline - script: build-packages.cmd -BuildArch=$(archType) -BuildType=$(buildConfigUpper) -OfficialBuildId=$(Build.BuildNumber) displayName: Build packages - - powershell: eng\common\build.ps1 /p:DotNetPublishToBlobFeed=true -ci -restore + - powershell: eng\common\build.ps1 /p:DotNetPublishToBlobFeed=true -ci -restore -projects $(Build.SourcesDirectory)\eng\empty.proj displayName: Restore blob feed tasks - powershell: eng\common\msbuild.ps1 -ci src\publishwitharcade.proj /p:__BuildType=$(buildConfigUpper) /p:__BuildArch=$(archType) /p:OSIdentifier=$(osIdentifier) /p:AzureFeedUrl=$(dotnetfeedUrl) /p:AzureAccountKey=$(dotnetfeedPAT) displayName: Publish packages to blob feed diff --git a/eng/empty.proj b/eng/empty.proj new file mode 100644 index 0000000..0bd280d --- /dev/null +++ b/eng/empty.proj @@ -0,0 +1,15 @@ + + + + + + netcoreapp2.0 + + + diff --git a/tests/helixpublishwitharcade.proj b/tests/helixpublishwitharcade.proj index ce1bdd4..6a4622e 100644 --- a/tests/helixpublishwitharcade.proj +++ b/tests/helixpublishwitharcade.proj @@ -1,6 +1,6 @@ -