@@ -19,19 +19,6 @@ steps:
19
19
set -x
20
20
df -h
21
21
22
- # If file changes are detected, set CopyWipIntoInnerSourceBuildRepo to copy the WIP changes into the inner source build repo.
23
- internalRestoreArgs=
24
- if ! git diff --quiet; then
25
- internalRestoreArgs='/p:CopyWipIntoInnerSourceBuildRepo=true'
26
- # The 'Copy WIP' feature of source build uses git stash to apply changes from the original repo.
27
- # This only works if there is a username/email configured, which won't be the case in most CI runs.
28
- git config --get user.email
29
- if [ $? -ne 0 ]; then
30
- git config user.email [email protected]
31
- git config user.name dn-bot
32
- fi
33
- fi
34
-
35
22
# If building on the internal project, the internal storage variable may be available (usually only if needed)
36
23
# In that case, add variables to allow the download of internal runtimes if the specified versions are not found
37
24
# in the default public locations.
@@ -46,11 +33,6 @@ steps:
46
33
buildConfig='$(_BuildConfig)'
47
34
fi
48
35
49
- officialBuildArgs=
50
- if [ '${{ and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}' = 'True' ]; then
51
- officialBuildArgs='/p:DotNetPublishUsingPipelines=true /p:OfficialBuildId=$(BUILD.BUILDNUMBER)'
52
- fi
53
-
54
36
targetRidArgs=
55
37
if [ '${{ parameters.platform.targetRID }}' != '' ]; then
56
38
targetRidArgs='/p:TargetRid=${{ parameters.platform.targetRID }}'
@@ -66,57 +48,30 @@ steps:
66
48
baseOsArgs='/p:BaseOS=${{ parameters.platform.baseOS }}'
67
49
fi
68
50
69
- publishArgs=
70
- if [ '${{ parameters.platform.skipPublishValidation }}' != 'true' ]; then
71
- publishArgs='--publish'
72
- fi
73
-
74
- assetManifestFileName=SourceBuild_RidSpecific.xml
75
- if [ '${{ parameters.platform.name }}' != '' ]; then
76
- assetManifestFileName=SourceBuild_${{ parameters.platform.name }}.xml
77
- fi
78
-
79
51
portableBuildArgs=
80
52
if [ '${{ parameters.platform.portableBuild }}' != '' ]; then
81
53
portableBuildArgs='/p:PortableBuild=${{ parameters.platform.portableBuild }}'
82
54
fi
83
55
84
56
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
85
57
--configuration $buildConfig \
86
- --restore --build --pack $publishArgs -bl \
58
+ --restore --build --pack -bl \
87
59
${{ parameters.platform.buildArguments }} \
88
- $officialBuildArgs \
89
60
$internalRuntimeDownloadArgs \
90
- $internalRestoreArgs \
91
61
$targetRidArgs \
92
62
$runtimeOsArgs \
93
63
$baseOsArgs \
94
64
$portableBuildArgs \
95
65
/p:DotNetBuildSourceOnly=true \
96
66
/p:DotNetBuildRepo=true \
97
- /p:AssetManifestFileName=$assetManifestFileName
98
67
displayName : Build
99
68
100
- # Upload build logs for diagnosis.
101
- - task : CopyFiles@2
102
- displayName : Prepare BuildLogs staging directory
103
- inputs :
104
- SourceFolder : ' $(Build.SourcesDirectory)'
105
- Contents : |
106
- **/*.log
107
- **/*.binlog
108
- artifacts/sb/prebuilt-report/**
109
- TargetFolder : ' $(Build.StagingDirectory)/BuildLogs'
110
- CleanTargetFolder : true
111
- continueOnError : true
112
- condition : succeededOrFailed()
113
-
114
69
- template : /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
115
70
parameters :
116
71
is1ESPipeline : ${{ parameters.is1ESPipeline }}
117
72
args :
118
73
displayName : Publish BuildLogs
119
- targetPath : ' $(Build.StagingDirectory)/BuildLogs '
74
+ targetPath : artifacts/log/${{ coalesce(variables._BuildConfig, 'Release') }}
120
75
artifactName : BuildLogs_SourceBuild_${{ parameters.platform.name }}_Attempt$(System.JobAttempt)
121
76
continueOnError : true
122
77
condition : succeededOrFailed()
0 commit comments