Describe the bug
Over the past week I did set up 2 bicep module registries with ACR on 2 separate tenants. A few days later I now noticed one is still empty rather than having all modules published. Looking at the details in the pipelines, I can indeed see that no modules are published despite "PublishLatest": true and #2410.
To reproduce
It's been a week since, but as far as I can remember I had following steps:
Repo that got published (first):
- Set up new ACR, Service connection, ...
- Clone CARML repository to a feature branch in new repository
- Register all Azure DevOps pipelines
- Update settings file in feature branch
- Manually test changes on a single pipeline to confirm a green build
- Fast-forward main and push main
- All pipelines triggered and ran successfully
Repo that didn't publish:
- Set up new ACR, Service connection, ...
- Clone repository to main in new repository
- Might have pushed main to AzDo (without any pipelines)
- Register all Azure DevOps pipelines
- Update settings file in main branch locally
- Commit settings file and push main
- All pipelines triggered and ran successfully, however no modules were pushed
Code snippet
No response
Relevant log output
VERBOSE: Invoke Get-ModulesToPublish with
VERBOSE: {
"PublishLatest": true,
"TemplateFilePath": "/home/vsts/work/1/s/modules/Microsoft.Web/staticSites/deploy.bicep"
}
VERBOSE: Gathering modified files from the pull request
VERBOSE: Looking for modified files under: [Microsoft.Web/staticSites]
VERBOSE: No template file found in the modified module.
VERBOSE: Modified modules found: [0]
VERBOSE: No modules with changes found to publish.
VERBOSE: Invoke Get-ModulesMissingFromPrivateBicepRegistry with
VERBOSE: {
"TemplateFilePath": "/home/vsts/work/1/s/modules/Microsoft.Web/staticSites/deploy.bicep",
"BicepRegistryRgName": "***",
"PublishLatest": true,
"BicepRegistryName": "***acr"
}
VERBOSE: No modules missing in the target environment
Describe the bug
Over the past week I did set up 2 bicep module registries with ACR on 2 separate tenants. A few days later I now noticed one is still empty rather than having all modules published. Looking at the details in the pipelines, I can indeed see that no modules are published despite
"PublishLatest": trueand #2410.To reproduce
It's been a week since, but as far as I can remember I had following steps:
Repo that got published (first):
Repo that didn't publish:
Code snippet
No response
Relevant log output
VERBOSE: Invoke Get-ModulesToPublish with VERBOSE: { "PublishLatest": true, "TemplateFilePath": "/home/vsts/work/1/s/modules/Microsoft.Web/staticSites/deploy.bicep" } VERBOSE: Gathering modified files from the pull request VERBOSE: Looking for modified files under: [Microsoft.Web/staticSites] VERBOSE: No template file found in the modified module. VERBOSE: Modified modules found: [0] VERBOSE: No modules with changes found to publish. VERBOSE: Invoke Get-ModulesMissingFromPrivateBicepRegistry with VERBOSE: { "TemplateFilePath": "/home/vsts/work/1/s/modules/Microsoft.Web/staticSites/deploy.bicep", "BicepRegistryRgName": "***", "PublishLatest": true, "BicepRegistryName": "***acr" } VERBOSE: No modules missing in the target environment