Skip to content

Commit

Permalink
Merged PR 130648: Update to ProdCon 2.1.2 (20180618-01)
Browse files Browse the repository at this point in the history
Update to the 2018-06-18 ProdCon 2.1.2 build.

Manually updated the AspNetCore package version used and ProdConFeed.txt.
  • Loading branch information
dagood committed Jul 2, 2018
1 parent e652861 commit cfbe095
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 24 deletions.
14 changes: 11 additions & 3 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ phases:
docker.runInSourceBuild: docker run --rm -v $(rootDirectory)/sb/source-build:/src -w /src
docker.runInTarball: docker run --rm -v $(rootDirectory)/sb/tarball/$(tarballName):/tb -w /tb
dropDirectory: $(stagingDirectory)/drop
prodConBlobFeedUrlPrefix: ''
rootDirectory: $(Build.SourcesDirectory)/..
stagingDirectory: $(rootDirectory)/sb/staging
tarballName: tarball_$(Build.BuildId)
Expand Down Expand Up @@ -38,7 +37,14 @@ phases:
displayName: Clean sb directory and copy source from cloned directory
# fetch vsts commits if building internally
- script: $(docker.runInSourceBuild) $(imageName) ./fetch-vsts-commits.sh $(user.PAT)
- script: |
set -x
# Ignore failure for the first command. It will intentionally fail if the commit is only
# available in VSTS. "submodule update --init" is the simplest way to set up the submodule
# directory. ("submodule init" only sets up .git/config, not the e.g. src/coreclr/.git and
# .git/modules/src/coreclr/ directories.)
$(docker.runInSourceBuild) $(imageName) git submodule update --init --recursive
$(docker.runInSourceBuild) $(imageName) ./fetch-vsts-commits.sh $(user.PAT)
displayName: Fetch internal vsts commits
condition: and(succeeded(), ne(variables['user.PAT'], ''))
Expand Down Expand Up @@ -88,7 +94,9 @@ phases:
condition: and(succeeded(), eq(variables['buildOfflineTarball'], true))

# run smoke tests
- script: $(docker.runInTarball) $(imageName) ./smoke-test.sh --minimal --projectOutput --configuration $(buildConfiguration)
# "-e SKIP_INIT_BUILD=true": init-build was already done by the build. Now, skip it, because the
# support build.sh tries to pass all args to init-build.proj where there is no "RunSmokeTest".
- script: $(docker.runInTarball) -e SKIP_INIT_BUILD=true $(imageName) ./build.sh /t:RunSmokeTest /p:Configuration=$(buildConfiguration) /p:ProdConBlobFeedUrlPrefix=$(prodConBlobFeedUrlPrefix)
displayName: Run smoke-test
condition: and(succeeded(), eq(variables['buildOfflineTarball'], true))

Expand Down
2 changes: 1 addition & 1 deletion ProdConFeed.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-1/20180605-09/final/index.json
https://dotnetfeed.blob.core.windows.net/orchestrated-release-2-1/20180618-01/final/index.json
12 changes: 5 additions & 7 deletions dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,17 @@
<RawVersionsBaseUrl>https://raw.githubusercontent.com/dotnet/versions</RawVersionsBaseUrl>
</DependencyBuildInfo>

<DependencyInfo Include="ProdCon">
<DependencyInfo Include="ProdCon" Condition="'$(UpdateFromManifestFile)' == ''">
<DependencyType>Orchestrated build</DependencyType>
<BasePath>build-info/dotnet/product/cli/release/2.1</BasePath>
<CurrentRef>$(ProdConCurrentRef)</CurrentRef>
<VersionsRepoOwner>dotnet</VersionsRepoOwner>
<VersionsRepo>versions</VersionsRepo>
</DependencyInfo>

<UpdateStep Include="ProdCon">
<UpdaterType>Orchestrated blob feed attribute</UpdaterType>
<SingleLineFile>$(MSBuildThisFileDirectory)ProdConFeed.txt</SingleLineFile>
<AttributeName>Url</AttributeName>
</UpdateStep>
<DependencyInfo Include="ProdCon" Condition="'$(UpdateFromManifestFile)' != ''">
<DependencyType>Orchestrated build file</DependencyType>
<Path>$(UpdateFromManifestFile)</Path>
</DependencyInfo>
</ItemGroup>

<ItemGroup Condition="'$(SkipBuildToolsUpdate)' != 'true'">
Expand Down
9 changes: 8 additions & 1 deletion dependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@
UpdaterType="Build attribute from orchestrated build"
AttributeName="BuildId"
Path="%(RepoProjectWithProperties.Identity)"
ElementName="OfficialBuildId" />
ElementName="OfficialBuildId"
SkipIfNoReplacementFound="true" />

<UpdateStep
Include="ProdCon"
UpdaterType="Orchestrated blob feed attribute"
SingleLineFile="$(MSBuildThisFileDirectory)ProdConFeed.txt"
AttributeName="Url" />
</ItemGroup>
</Target>
</Project>
8 changes: 4 additions & 4 deletions fetch-vsts-commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ fetch() {
name=$1
remote=$2

pushd "$SCRIPT_ROOT/src/$name"
git fetch "$remote" +refs/heads/*:refs/remotes/${remote_ref_name}/*
popd

(
cd "$SCRIPT_ROOT/src/$name"
git fetch "$remote" +refs/heads/*:refs/remotes/${remote_ref_name}/*
)
}

fetch_vsts() {
Expand Down
7 changes: 5 additions & 2 deletions repos/cli.proj
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
<ExtraPackageVersionPropsPackageInfo
Include="
Microsoft.AspNetCore.All;
Microsoft.AspNetCore.App;
Microsoft.NET.Sdk.Razor"
Microsoft.AspNetCore.App"
Version="2.1.2" />
<!-- This package wasn't built in latest 2.1.2 build: stick with what we had from 2.1.1. -->
<ExtraPackageVersionPropsPackageInfo
Include="Microsoft.NET.Sdk.Razor"
Version="2.1.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion repos/core-setup.proj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<BuildArguments Condition="$(Platform.Contains('arm'))">$(BuildArguments) -TargetArchitecture=$(Platform) -DisableCrossgen=true -CrossBuild=true</BuildArguments>
<BuildCommand>$(ProjectDirectory)/build$(ShellExtension) $(BuildArguments) -- /p:BuildDebPackage=false /p:BuildAllPackages=true</BuildCommand>
<BuildCommand Condition="$(Platform.Contains('arm'))">$(ArmEnvironmentVariables) $(BuildCommand)</BuildCommand>
<OfficialBuildId>20180606-03</OfficialBuildId>
<OfficialBuildId>20180618-03</OfficialBuildId>

<!-- Need to set $(PackagesOutput) so WriteVersions writes the versions file for cli, until cli respects auto-dependency flow -->
<PackagesOutput>$(SourceBuiltPackagesPath)</PackagesOutput>
Expand Down
2 changes: 1 addition & 1 deletion repos/corefx.proj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<BuildCommand Condition="$(Platform.Contains('arm'))">$(ArmEnvironmentVariables) $(BuildCommand)</BuildCommand>
<PackagesOutput>$(ProjectDirectory)/bin/packages/$(Configuration)</PackagesOutput>
<CleanCommand>$(ProjectDirectory)/clean$(ShellExtension)</CleanCommand>
<OfficialBuildId>20180606-05</OfficialBuildId>
<OfficialBuildId>20180618-03</OfficialBuildId>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/core-setup
Submodule core-setup updated 1 files
+1 −1 BranchInfo.props
4 changes: 3 additions & 1 deletion support/tarball/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ PREBUILT_PACKAGE_SOURCE="$SCRIPT_ROOT/prebuilt/nuget-packages"
exit 1
)

$CLI_ROOT/dotnet $CLI_ROOT/sdk/$CLI_VERSION/MSBuild.dll $SCRIPT_ROOT/tools-local/init-build.proj /t:WriteDynamicPropsToStaticPropsFiles /p:GeneratingStaticPropertiesFile=true ${MSBUILD_ARGUMENTS[@]} "$@"
if [ -z "${SKIP_INIT_BUILD:-}" ]; then
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$CLI_VERSION/MSBuild.dll $SCRIPT_ROOT/tools-local/init-build.proj /t:WriteDynamicPropsToStaticPropsFiles /p:GeneratingStaticPropertiesFile=true ${MSBUILD_ARGUMENTS[@]} "$@"
fi
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$CLI_VERSION/MSBuild.dll $SCRIPT_ROOT/build.proj ${MSBUILD_ARGUMENTS[@]} "$@"

0 comments on commit cfbe095

Please sign in to comment.