Skip to content

Commit 4b6c41b

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 8325139 commit 4b6c41b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ steps:
2727
targetType: inline
2828
pwsh: true
2929
script: |
30-
# Starte das PowerShell-Skript direkt wie es in der Composite-Action gemacht wird
3130
$sourceDir = "BuildAccdeExample\source"
3231
$targetDir = "BuildAccdeExample\bin"
3332
$compile = $false
3433
$vcsUrl = "https://api.github.com/repos/josef-poetzl/msaccess-vcs-addin/releases/latest"
3534
36-
$scriptPath = Join-Path -Path "$(Build.SourcesDirectory)" -ChildPath "msaccess-vcs-build/Build.ps1"
35+
$scriptPath = "$(Build.SourcesDirectory)\msaccessVcsBuild\Build.ps1"
3736
Write-Host "Running script at $scriptPath"
37+
38+
if (-Not (Test-Path $scriptPath)) {
39+
Write-Error "Build.ps1 not found at $scriptPath"
40+
exit 1
41+
}
42+
3843
& $scriptPath -SourceDir $sourceDir -TargetDir $targetDir -Compile $compile -vcsUrl $vcsUrl
39-
timeoutInMinutes: 10
4044
4145
- task: PublishBuildArtifacts@1
4246
displayName: 'Upload Build Artifact'

0 commit comments

Comments
 (0)