From 95cda8f9977f3762af0182254996033c9edf3c06 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Thu, 22 Dec 2022 21:43:08 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index e8b04d88..2c8092be 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -176,7 +176,6 @@ stages: #define AppVerPath "$appVersionWithUnderscores" #define RootPath "$env:BUILD_ARTIFACTSTAGINGDIRECTORY" "@ - #$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii $installTextFileContent | Set-Content "$installTextFile" -Encoding Ascii -Force & "$env:AGENTCAPABILITIES_USER_INNOSETUP" "$installScriptFile" @@ -191,16 +190,7 @@ stages: targetType: 'inline' script: | $appVersion = $env:BUILD_BUILDNUMBER - $appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.')) $appVersionWithUnderscores = $appVersion.Replace('.', '_') - - #$fileExtension = '.application' - #$applicationFiles = Get-ChildItem -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -Filter "*$fileExtension" -File -Name - #$applicationFile = $applicationFiles.Where({$_.Replace(' ', '') -eq "$(ApplicationName)$fileExtension"}) - #if ($applicationFile.Count -ne 1) { - # throw "Could not find the application file ($(ApplicationName)$fileExtension)" - #} - #$applicationFileName = [System.IO.Path]::GetFileNameWithoutExtension($applicationFile[0]) $applicationFolderName = "$(ApplicationName)_$($appVersionWithUnderscores)" $sourcePath = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/Application Files/$applicationFolderName" @@ -218,14 +208,6 @@ stages: $appVersion = $env:BUILD_BUILDNUMBER $appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.')) $appVersionWithUnderscores = $appVersion.Replace('.', '_') - - #$fileExtension = '.application' - #$applicationFiles = Get-ChildItem -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -Filter "*$fileExtension" -File -Name - #$applicationFile = $applicationFiles.Where({$_.Replace(' ', '') -eq "$(ApplicationName)$fileExtension"}) - #if ($applicationFile.Count -ne 1) { - # throw "Could not find the application file ($(ApplicationName)$fileExtension)" - #} - #$applicationFileName = [System.IO.Path]::GetFileNameWithoutExtension($applicationFile[0]) $applicationFolderName = "$(ApplicationName)_$($appVersionWithUnderscores)" $sourcePath = "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/Application Files/$applicationFolderName" @@ -241,7 +223,7 @@ stages: - task: PublishBuildArtifacts@1 displayName: Publish Artifacts - enabled: false + enabled: true inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)' ArtifactName: '$(PublishFolder)'