Skip to content

Commit 7d72f98

Browse files
committed
moved the condition to the delete job
1 parent 534e0e2 commit 7d72f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CI/Azure-DevOps/AZ_MainPipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ stages:
281281
282282
Write-Warning 'This information is now public! Run the following Powershell Statement to change the password immediately!';
283283
284-
$PwdChngCommand = "`$NewPwd = -join ((40..95+97..126) | Get-Random -Count 30 | % {[char]`$_}); Write-Output `"New Password: `$NewPwd`"; Invoke-Sqlcmd -Query `"ALTER LOGIN [abc] WITH PASSWORD = '`$NewPwd';`" -ServerInstance `"$FQDNAndPort`" -Username `"$SQLUserName`" -Password `"$SQLPwd`" -TrustServerCertificate;";
284+
$PwdChngCommand = "`$NewPwd = -join ((40..95+97..126) | Get-Random -Count 30 | % {[char]`$_}); Write-Output `"New Password: `$NewPwd`"; Invoke-Sqlcmd -Query `"ALTER LOGIN [$SQLUserName] WITH PASSWORD = '`$NewPwd';`" -ServerInstance `"$FQDNAndPort`" -Username `"$SQLUserName`" -Password `"$SQLPwd`" -TrustServerCertificate;";
285285
Write-Host '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' -ForegroundColor Yellow;
286286
Write-Host $PwdChngCommand
287287
Write-Host '==========================================================' -ForegroundColor Yellow;
@@ -846,8 +846,6 @@ stages:
846846
- Create_Environments
847847
- Validate
848848

849-
condition: not(and(eq(${{ parameters.CreateEnvOnly }}, true), succeeded('Create_Environments.PrintSQLInfo')))
850-
851849
pool:
852850
vmImage: 'windows-latest'
853851

@@ -875,6 +873,8 @@ stages:
875873
${{ format('{0}', version.name) }}:
876874
SQLVersionEdition: ${{ version.SQLVersionEdition }}
877875

876+
condition: not(and(eq(${{ parameters.CreateEnvOnly }}, true), succeeded(format('Create_Environments.PrintSQLInfo_{0}', version.name))))
877+
878878
variables:
879879
databaseAccessDetails: $[convertToJson(stageDependencies.Create_Environments.Create.outputs)]
880880

0 commit comments

Comments
 (0)