Skip to content

Commit 0819b0c

Browse files
author
Marius Storhaug
authored
Bugfix for publishing json using ado (#1003)
1 parent df4fd29 commit 0819b0c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.azuredevops/pipelineTemplates/jobs.publishModule.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ jobs:
159159
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourcePublish' 'Publish-ModuleToUniversalArtifactFeed.ps1')
160160
161161
#Prioritizing the bicep file
162-
$TemplateFilePath = Join-Path '$(ENVMODULEPATH)' 'deploy.bicep'
162+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.bicep'
163163
if (-not (Test-Path $TemplateFilePath)) {
164-
$TemplateFilePath = Join-Path -Path $FolderPath -ChildPath 'deploy.json'
164+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.json'
165165
}
166166
167167
$functionInput = @{
@@ -214,9 +214,9 @@ jobs:
214214
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourcePublish' 'Publish-ModuleToTemplateSpec.ps1')
215215
216216
#Prioritizing the bicep file
217-
$TemplateFilePath = Join-Path '$(ENVMODULEPATH)' 'deploy.bicep'
217+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.bicep'
218218
if (-not (Test-Path $TemplateFilePath)) {
219-
$TemplateFilePath = Join-Path -Path $FolderPath -ChildPath 'deploy.json'
219+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.json'
220220
}
221221
222222
$functionInput = @{
@@ -266,9 +266,9 @@ jobs:
266266
. (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourcePublish' 'Publish-ModuleToPrivateBicepRegistry.ps1')
267267
268268
#Prioritizing the bicep file
269-
$TemplateFilePath = Join-Path '$(ENVMODULEPATH)' 'deploy.bicep'
269+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.bicep'
270270
if (-not (Test-Path $TemplateFilePath)) {
271-
$TemplateFilePath = Join-Path -Path $FolderPath -ChildPath 'deploy.json'
271+
$TemplateFilePath = Join-Path -Path '$(ENVMODULEPATH)' -ChildPath 'deploy.json'
272272
}
273273
274274
$functionInput = @{

0 commit comments

Comments
 (0)