Skip to content

Commit

Permalink
BUILD-4009 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-carsique-sonarsource committed Oct 25, 2023
1 parent 0dec16f commit d623eb5
Showing 1 changed file with 7 additions and 75 deletions.
82 changes: 7 additions & 75 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,80 +65,6 @@ stages:
clean: all

steps:

# DELME
- powershell: |
Start-Service -Name 'msiserver'
displayName: 'Start Windows Installer Service'
enabled: false
# DELME
- powershell: |
$service = Get-Service -Name 'msiserver' -ErrorAction SilentlyContinue
if ($service) {
Write-Output "Service Status: $($service.Status)"
$service = Get-WmiObject -Class Win32_Service -Filter "Name='msiserver'"
if ($service) {
$service | Format-List * -Force
} else {
Write-Output "The Windows Installer Service is not installed (2)."
}
} else {
Write-Output "The Windows Installer Service is not installed."
}
displayName: 'Check Windows Installer Service Status and configuration'
enabled: false
# DELME
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
$identity = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal $identity
$isAdmin = $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
if ($isAdmin) {
Write-Output "Pipeline is running with administrator privileges."
} else {
Write-Output "Pipeline is NOT running with administrator privileges."
}
displayName: 'Check for Administrator Privileges'
enabled: false

# DELME
- task: PowerShell@2
displayName: 'Unregister Windows Installer'
inputs:
targetType: 'inline'
script: |
Start-Process -FilePath "msiexec.exe" -ArgumentList "/UNREGISTER" -NoNewWindow -Wait
# DELME
- task: PowerShell@2
displayName: 'Re-register Windows Installer'
inputs:
targetType: 'inline'
script: |
Start-Process -FilePath "msiexec.exe" -ArgumentList "/REGSERVER" -NoNewWindow -Wait
- task: SSMClientToolsSetup@1
# DELME
env:
SM_LOG_OUTPUT: console
SM_LOG_LEVEL: TRACE

- task: SSMSigningToolsSetup@1
# DELME
env:
SM_LOG_OUTPUT: console
SM_LOG_LEVEL: TRACE

- task: DownloadSecureFile@1
name: SM_CLIENT_CERT_FILE
inputs:
secureFile: digicert_authentication_certificate.p12

- task: NuGetToolInstaller@1
displayName: "Install NuGet"

Expand Down Expand Up @@ -167,8 +93,14 @@ stages:
inputs:
secureFile: SonarSourceSecret.snk

- task: DownloadSecureFile@1
displayName: 'Download p12 file'
name: SM_CLIENT_CERT_FILE
inputs:
secureFile: digicert_authentication_certificate.p12

- task: VSBuild@1
displayName: "Build and sign SonarAnalyzer solution"
displayName: "Build SonarAnalyzer solution"
# env:
# SIGNTOOL_PATH: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17763.0\\x64\\signtool.exe'
# PFX_PASSWORD: $(pfxPassword2021-2023)
Expand Down

0 comments on commit d623eb5

Please sign in to comment.