How to Batch Publish to OnPrem on Release Pipelines ? batch_publish_folder
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 63
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
No output on the release pipeline publish step. I looks like taht batch publish isn't working.
the used yaml
please provide the yaml that you used. It helps you put the yaml like this:
steps:
- task: CopyFiles@2
displayName: 'Copy Files to: $(Agent.ReleaseDirectory)\$(Release.ReleaseName)'
inputs:
SourceFolder: '$(Agent.ReleaseDirectory)\'
Contents: '**\*.app'
TargetFolder: '$(Agent.ReleaseDirectory)\$(Release.ReleaseName)'
CleanTargetFolder: true
flattenFolders: true
steps:
- task: Hodor.hodor-alops.alopspublishtask.ALOpsAppPublish@1
displayName: 'ALOps App Publish'
inputs:
nav_serverinstance: 'BC_TEST'
batch_publish_folder: '$(Agent.ReleaseDirectory)\$(Release.ReleaseName)'
the output
Also the complete output is necessary for us to see what is going on. Also use backtics:
2022-07-21T13:12:39.7268684Z ##[section]Starting: Copy Files to: C:\agent\_work\r1\a\Release-20
2022-07-21T13:12:39.7618855Z ==============================================================================
2022-07-21T13:12:39.7619273Z Task : Copy files
2022-07-21T13:12:39.7619663Z Description : Copy files from a source folder to a target folder using patterns matching file paths (not folder paths)
2022-07-21T13:12:39.7620198Z Version : 2.200.0
2022-07-21T13:12:39.7620469Z Author : Microsoft Corporation
2022-07-21T13:12:39.7620845Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/copy-files
2022-07-21T13:12:39.7621536Z ==============================================================================
2022-07-21T13:12:40.0894611Z found 4 files
2022-07-21T13:12:40.0897526Z Cleaning target folder: C:\agent\_work\r1\a\Release-20
2022-07-21T13:12:40.0942908Z Copying C:\agent\_work\r1\a\SpecificRelease-BaseApp-BC20-1\dependencies\XXXX.runtime.app to C:\agent\_work\r1\a\Release-20\XXXX.runtime.app
2022-07-21T13:12:40.1187176Z Copying C:\agent\_work\r1\a\SpecificRelease-BaseApp-BC20-1\dependencies\XXXXY.runtime.app to C:\agent\_work\r1\a\Release-20\XXXy.runtime.app
2022-07-21T13:12:40.1524700Z Copying C:\agent\_work\r1\a\SpecificRelease-BaseApp-BC20-1\dependencies\XXXZ.runtime.app to C:\agent\_work\r1\a\Release-20\XXXZ.runtime.app
2022-07-21T13:12:40.1561819Z Copying C:\agent\_work\r1\a\SpecificRelease-BaseApp-BC20-1\WFT\XXXX-BaseApp_0.1.15833.0.app to C:\agent\_work\r1\a\Release-20\XXXX-BaseApp_0.1.15833.0.app
2022-07-21T13:12:40.1653586Z ##[section]Finishing: Copy Files to: C:\agent\_work\r1\a\Release-20
2022-07-21T13:12:40.1689968Z ##[section]Starting: ALOps App Publish
2022-07-21T13:12:40.1971680Z ==============================================================================
2022-07-21T13:12:40.1972343Z Task : ALOps App Publish
2022-07-21T13:12:40.1972810Z Description : Publish AL Extension to Business Central
2022-07-21T13:12:40.1973355Z Version : 1.451.3127
2022-07-21T13:12:40.1973688Z Author : Hodor
2022-07-21T13:12:40.1975853Z Help : Publish Business Central extension to service tier.
2022-07-21T13:12:40.1976600Z ==============================================================================
2022-07-21T13:12:42.3585728Z *** Configure AMSI for session: disable (in memory)
2022-07-21T13:12:42.3843107Z 0
2022-07-21T13:12:43.6879229Z *** Validate configuration
2022-07-21T13:12:44.2937398Z *** Task Inputs:
2022-07-21T13:12:44.2994513Z
2022-07-21T13:12:44.3116480Z name value
2022-07-21T13:12:44.3118908Z ---- -----
2022-07-21T13:12:44.3120406Z usedocker False
2022-07-21T13:12:44.3132089Z fixed_tag
2022-07-21T13:12:44.3160212Z installpublishedapps True
2022-07-21T13:12:44.3171141Z installaltesttool False
2022-07-21T13:12:44.3172337Z install_al_app_names Tests-TestLibraries...
2022-07-21T13:12:44.3173531Z strictappnames False
2022-07-21T13:12:44.3175052Z nav_serverinstance BC_TEST
2022-07-21T13:12:44.3177670Z artifact_path
2022-07-21T13:12:44.3179099Z nav_artifact_app_filter *.app
2022-07-21T13:12:44.3193602Z skip_verification True
2022-07-21T13:12:44.3197981Z forceinstall False
2022-07-21T13:12:44.3215602Z forcesync False
2022-07-21T13:12:44.3218451Z publish_scope Global
2022-07-21T13:12:44.3219462Z tenant default
2022-07-21T13:12:44.3220334Z batch_publish_folder C:\agent\_work\r1\a\Release-20
2022-07-21T13:12:44.3221222Z publisherazureactivedirectorytenantid
2022-07-21T13:12:44.3221670Z
2022-07-21T13:12:44.3222294Z
2022-07-21T13:12:44.3222663Z
2022-07-21T13:12:44.3456993Z *** For documentation, please visit : https://www.alops.be/documentation
2022-07-21T13:12:44.3586822Z
2022-07-21T13:12:44.4695194Z ##[section]Finishing: ALOps App Publish
Expected behavior
I would expect, that batch_publish would work.
Screenshots
Additional context
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the ALOps App Publish task entry point and trace the batch_publish_folder input using the YAML and release-pipeline output shown here. Reproduce the publish step with the provided folder and confirm that the apps are processed and the task reports meaningful publish output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100