WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

while packing the full solution it is taking older version #279

Open gukreddy11 opened 1 year ago

gukreddy11 commented 1 year ago

Hi Exports,

We are exporting and extracting the full solution from dev environment and keeping into azure repository. after that we are repacking the solution from extracted solution. while packing the solution it is taking older version. issue is fixing after rerun the build pipeline again. due to this issue, we are facing while importing the solution in target instance. Sometimes its failing sometimes its working fine. Please provide quick resolution.

Error Message: Solution manifest import: FAILURE: The import solution must have a higher version than the existing solution it is upgrading.Detail:

image

This Build generated latest version(version: 1.94.20230213.577474) but it is pointing to older version while packing. PFB.

image

mattp65 commented 1 year ago

Best guess is your pipeline is not retrieving the recently updated source (wrong branch maybe?). The Pack is only working off the source that is in the working directory. The issue isn't in the Pack command tho, it is related to how you are populating the directory with the source that it acts on.

gukreddy11 commented 1 year ago

Pipeline is pointing to correct branch only. if issue with source directory, then this issue will occur every time but sometimes it's getting failed sometimes it's getting succeeded. we run this pipeline weekly once. last week it got failed but yesterday run it was completed successfully.

Thanks for your help!