HodorNV / ALOps

ALOps
55 stars 24 forks source link

ALOps AppSource with Powershell Core enabled -> steps are successfully executed but no update on partner portal #757

Closed DevHarmonize closed 2 months ago

DevHarmonize commented 2 months ago

Describe the bug When I run a AppSource pipeline with powershell core enabled, then the pipeline is run successfully but no new submission done on the partner portal.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

steps:
- task: Hodor.hodor-alops.ALOpsAppSource.ALOpsAppSource@1
  displayName: 'ALOps AppSource'
  inputs:
    azure_tenant_id: '$(HIT_tenant_id)'
    azure_app_client_id: '$(HIT_client_id)'
    azure_app_client_secret: '$(HIT_secret_value)'
    pwsh: true

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2024-04-25T09:38:09.2373423Z ##[section]Starting: Download artifact - _CDS_ChemDis_Core - Dynamics 365
2024-04-25T09:38:09.3032645Z ==============================================================================
2024-04-25T09:38:09.3033658Z Task         : Download build artifacts
2024-04-25T09:38:09.3034353Z Description  : Download files that were saved as artifacts of a completed build
2024-04-25T09:38:09.3034700Z Version      : 0.238.1
2024-04-25T09:38:09.3035177Z Author       : Microsoft Corporation
2024-04-25T09:38:09.3035877Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
2024-04-25T09:38:09.3036409Z ==============================================================================
2024-04-25T09:38:10.3959966Z Downloading artifacts for build: 3217
2024-04-25T09:38:10.5087762Z Downloading items from container resource #/29462263/AL Developments
2024-04-25T09:38:10.5088613Z Downloading artifact Dynamics 365 from: https://dev.azure.com/HarmonizeIt//_apis/resources/Containers/29462263?itemPath=AL%20Developments&isShallow=true&api-version=4.1-preview.4
2024-04-25T09:38:10.7041924Z Downloading AL Developments/compilelog.txt to C:\agent\_work\r21\a\_CDS_ChemDis_Core\AL Developments\compilelog.txt
2024-04-25T09:38:10.7061093Z Downloaded AL Developments/compilelog.txt to C:\agent\_work\r21\a\_CDS_ChemDis_Core\AL Developments\compilelog.txt
2024-04-25T09:38:10.9554049Z Downloading AL Developments/Harmonize It_ChemDis Core_21.0.202417.3217.app to C:\agent\_work\r21\a\_CDS_ChemDis_Core\AL Developments\Harmonize It_ChemDis Core_21.0.202417.3217.app
2024-04-25T09:38:11.2993619Z Downloaded AL Developments/Harmonize It_ChemDis Core_21.0.202417.3217.app to C:\agent\_work\r21\a\_CDS_ChemDis_Core\AL Developments\Harmonize It_ChemDis Core_21.0.202417.3217.app
2024-04-25T09:38:11.5290559Z Total Files: 2, Processed: 2, Skipped: 0, Failed: 0, Download time: 1.02 secs, Download size: 4.173MB
2024-04-25T09:38:11.5482539Z Successfully downloaded artifacts to C:\agent\_work\r21\a\_CDS_ChemDis_Core\
2024-04-25T09:38:11.5513561Z ##[section]Finishing: Download artifact - _CDS_ChemDis_Core - Dynamics 365
2024-04-25T09:38:11.5552342Z ##[section]Starting: ALOps AppSource
2024-04-25T09:38:11.5685750Z ==============================================================================
2024-04-25T09:38:11.5686050Z Task         : ALOps AppSource
2024-04-25T09:38:11.5686274Z Description  : Compile AL Extensions for Business Central
2024-04-25T09:38:11.5686476Z Version      : 1.464.6041
2024-04-25T09:38:11.5686633Z Author       : Hodor
2024-04-25T09:38:11.5687761Z Help         : Compile a Business Central extension from AL code.
2024-04-25T09:38:11.5688051Z ==============================================================================
2024-04-25T09:38:12.4689650Z *** Using Powershell 7
2024-04-25T09:38:12.6331384Z *** PWSH Run Completed: 
2024-04-25T09:38:12.6740069Z ##[section]Finishing: ALOps AppSource
2024-04-25T09:38:12.6813071Z ##[section]Starting: Finalize Job
2024-04-25T09:38:12.6851959Z Cleaning up task key
2024-04-25T09:38:12.6854430Z Start cleaning up orphan processes.
2024-04-25T09:38:12.6899806Z ##[section]Finishing: Finalize Job

Expected behavior I expect a new submission on the partner portal

Screenshots image

as you can see, everything is executed under a second, am I missing something in the configuration?

waldo1001 commented 2 months ago

Did you install PS7 (and rebooted after that) on your build agent?

https://github.com/HodorNV/ALOps/issues/745

DevHarmonize commented 2 months ago

Did you install PS7 (and rebooted after that) on your build agent?

745

PS7 was installed, but looks like we forgot the server reboot.. working now, thanks!