Skip to content

Commit ad1a0da

Browse files
committed
Exclude auth.
1 parent bdd4189 commit ad1a0da

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.azure-pipelines/generate-auth-module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
displayName: 'Generate and Build Auth Module'
3737
inputs:
3838
filePath: '$(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1'
39-
arguments: '-RepositoryApiKey $(Api_Key) -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning'
39+
arguments: '-ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning'
4040
pwsh: true
4141

4242
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1

.azure-pipelines/generate-beta-modules.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
66
trigger:
77
branches:
88
include:
9-
- master
9+
- master
1010
paths:
1111
include:
12-
- src/*
13-
- config/ModulesMapping.jsonc
12+
- src/*
13+
- config/ModulesMapping.jsonc
14+
exclude:
15+
- src/Authentication/*
1416
pr: none
1517
variables:
1618
MODULE_PREFIX: 'Microsoft.Graph'
@@ -51,7 +53,7 @@ jobs:
5153
displayName: 'Build Auth Modules'
5254
inputs:
5355
filePath: '$(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1'
54-
arguments: '-RepositoryApiKey $(Api_Key) -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -BuildWhenEqual -EnableSigning'
56+
arguments: '-ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -BuildWhenEqual -EnableSigning'
5557
pwsh: true
5658

5759
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
@@ -131,7 +133,7 @@ jobs:
131133
displayName: 'Generate and Build Graph Resource Modules'
132134
inputs:
133135
filePath: '$(System.DefaultWorkingDirectory)/tools/GenerateModules.ps1'
134-
arguments: '-RepositoryApiKey $(Api_Key) -ArtifactsLocation $(Build.ArtifactStagingDirectory)\ -Build -EnableSigning'
136+
arguments: '-ArtifactsLocation $(Build.ArtifactStagingDirectory)\ -Build -EnableSigning'
135137
pwsh: true
136138

137139
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1

.azure-pipelines/generate-beta-rollup-module.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
displayName: 'Generate and Build Roll-Up Module'
3131
inputs:
3232
filePath: '$(System.DefaultWorkingDirectory)/tools/GenerateRollUpModule.ps1'
33-
arguments: '-RepositoryApiKey $(Api_Key) -ArtifactsLocation $(Build.ArtifactStagingDirectory)'
3433
pwsh: true
3534

3635
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1

tools/GenerateAuthenticationModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if ($null -eq $ManifestContent.ModuleVersion) {
4242
[VersionState]$VersionState = & $ValidateUpdatedModuleVersionPS1 -ModuleName "$ModulePrefix.$ModuleName" -NextVersion $ManifestContent.ModuleVersion
4343

4444
if ($VersionState.Equals([VersionState]::Invalid)) {
45-
Write-Error "The specified version in $ModulePrefix.$ModuleName module is either higher or lower than what's on $RepositoryName. Update 'ModuleVersion' in $AuthModulePath$AuthModuleManifest."
45+
Write-Warning "The specified version in $ModulePrefix.$ModuleName module is either higher or lower than what's on $RepositoryName. Update 'ModuleVersion' in $AuthModulePath$AuthModuleManifest."
4646
}
4747
elseif ($VersionState.Equals([VersionState]::EqualToFeed) -and !$BuildWhenEqual) {
4848
Write-Warning "$ModulePrefix.$ModuleName module skipped. Version has not changed and is equal to what's on $RepositoryName."

tools/GenerateModules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $ModuleMapping.Keys | ForEach-Object -Begin { $RequestCount = 0 } -End { Write-H
8282
[VersionState]$VersionState = & $ValidateUpdatedModuleVersionPS1 -ModuleName "$ModulePrefix.$ModuleName" -NextVersion $ModuleVersion
8383

8484
if ($VersionState.Equals([VersionState]::Invalid) -and !$SkipVersionCheck) {
85-
Write-Error "The specified version in $ModulePrefix.$ModuleName module is either higher or lower than what's on $RepositoryName. Update the 'module-version' in $ModuleLevelReadMePath"
85+
Write-Warning "The specified version in $ModulePrefix.$ModuleName module is either higher or lower than what's on $RepositoryName. Update the 'module-version' in $ModuleLevelReadMePath"
8686
}
8787
elseif ($VersionState.Equals([VersionState]::EqualToFeed) -and !$SkipVersionCheck) {
8888
Write-Warning "$ModulePrefix.$ModuleName module skipped. Version has not changed and is equal to what's on $RepositoryName."

tools/GenerateRollUpModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if ($null -eq $NuspecMetadata["version"]) {
5050
[VersionState]$VersionState = & $ValidateUpdatedModuleVersionPS1 -ModuleName $ModulePrefix -NextVersion $NuspecMetadata["version"]
5151

5252
if ($VersionState.Equals([VersionState]::Invalid)) {
53-
Write-Error "The specified version in $ModulePrefix module is either higher or lower than what's on $RepositoryName. Update 'version' in $ModuleMetadataJson."
53+
Write-Warning "The specified version in $ModulePrefix module is either higher or lower than what's on $RepositoryName. Update 'version' in $ModuleMetadataJson."
5454
}
5555
elseif ($VersionState.Equals([VersionState]::EqualToFeed)) {
5656
Write-Warning "$ModulePrefix module skipped. Version has not changed and is equal to what's on $RepositoryName."

0 commit comments

Comments
 (0)