Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating NetOnly OneBranch #4290

Merged
merged 16 commits into from
Aug 17, 2023
39 changes: 16 additions & 23 deletions build/template-OneBranch-releasebuild-netonly.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@

# Release build for -netonly package should be triggered after the normal release build
variables:
parameters:
BuildPlatform: 'AnyCPU'
BuildConfiguration: 'Release'
ProjectFilePath: '$(Build.SourcesDirectory)\src\client\Microsoft.Identity.Client\Microsoft.Identity.Client.csproj'
ProjectFolderPath: '$(Build.SourcesDirectory)\src\client\Microsoft.Identity.Client'
MsalClientSemVer: '4.55.0-devopsbuild'
ProjectFilePath: 'microsoft-authentication-library-for-dotnet\src\client\Microsoft.Identity.Client\Microsoft.Identity.Client.csproj'
ProjectFolderPath: 'microsoft-authentication-library-for-dotnet\src\client\Microsoft.Identity.Client'
trwalke marked this conversation as resolved.
Show resolved Hide resolved
trwalke marked this conversation as resolved.
Show resolved Hide resolved

steps:
- template: template-prebuild-code-analysis.yaml

- task: VSBuild@1
displayName: 'Restore $(ProjectFilePath)'
displayName: 'Restore ${{ parameters.ProjectFilePath }}'
inputs:
solution: $(ProjectFilePath)
solution: ${{ parameters.ProjectFilePath }}
msbuildArgs: '/t:restore /p:NET_ONLY_INTERNAL_PACKAGE=true'
platform: ${{ variables.BuildPlatform }}
configuration: ${{ variables.BuildConfiguration }}
platform: ${{ parameters.BuildPlatform }}
configuration: ${{ parameters.BuildConfiguration }}

- task: VSBuild@1
displayName: 'Build $(ProjectFilePath)'
displayName: 'Build ${{ parameters.ProjectFilePath }}'
inputs:
solution: $(ProjectFilePath)
solution: ${{ parameters.ProjectFilePath }}
msbuildArgs: '/p:RunCodeAnalysis=false /p:MsalClientSemVer=$(MsalClientSemVer) /p:SourceLinkCreate=true /p:ContinousIntegrationBuild=true /p:NET_ONLY_INTERNAL_PACKAGE=true'
platform: ${{ variables.BuildPlatform }}
configuration: ${{ variables.BuildConfiguration }}
platform: ${{ parameters.BuildPlatform }}
configuration: ${{ parameters.BuildConfiguration }}
maximumCpuCount: true

- template: template-sign-binary.yaml
parameters:
FolderPath: '${{ variables.ProjectFolderPath }}'
FolderPath: '${{ parameters.ProjectFolderPath }}'
Pattern: '**\bin\**\Microsoft.Identity.Client.dll'

- task: VSBuild@1
displayName: 'Pack ${{ variables.ProjectFilePath }}'
displayName: 'Pack ${{ parameters.ProjectFilePath }}'
inputs:
solution: ${{ variables.ProjectFilePath }}
solution: ${{ parameters.ProjectFilePath }}
msbuildArgs: '/t:pack /p:nobuild=true /p:IncludeSymbols=true /p:NET_ONLY_INTERNAL_PACKAGE=true'
configuration: ${{ variables.BuildConfiguration }}
configuration: ${{ parameters.BuildConfiguration }}

- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)\packages'
Expand Down Expand Up @@ -84,10 +83,4 @@ steps:
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)\packages'

- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: packages'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)\packages'
artifactName: packages

- template: template-publish-analysis-and-cleanup.yaml
Loading