Get Solution Version #385
Replies: 5 comments 1 reply
-
This was most upvoted one: "smarter" solution import task. Next version of pac cli will have new flag |
Beta Was this translation helpful? Give feedback.
-
You should be able to see "Skip lower version" in the latest version of build tools: |
Beta Was this translation helpful? Give feedback.
-
I can see the new tag has been added to the UI, but it does not seem to be taking effect: [ 'Calling pac cli inputs: solution import --path D:\a\1\Solutions\AutomatedDeploymentExample_Managed.zip --async true --import-as-holding false --force-overwrite false --publish-changes false --skip-dependency-check false --convert-to-managed false --max-async-wait-time 60 --activate-plugins true --skip-lower-version true --settings-file D:\a\1\SolutionParameterFiles\AutomatedDeploymentExample.UAT.json' ] The solution being imported has the same version number as the one in the environment. I've tried this as both Upgrade and Update approaches and both show the same behaviour. Also, if/when it works, would the step report as skipped if it doesn't run as the solution is already up to date, so that subsequent steps (e.g. apply solution upgrade can be skipped) Thanks! |
Beta Was this translation helpful? Give feedback.
-
+1 on the suggestion that either the step reports as skipped or perhaps an output variable is set indicating the action taken by the import task. Doesn't seem there's a way (or a straight forward way) to not run a subsequent Upgrade task based on the import being the same or higher version. |
Beta Was this translation helpful? Give feedback.
-
Seems like this one, #494 , and #501 all highlight the same (or at least a similar problem). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Could there be a new action added to get the solution version for a particular solution, which would allow us to skip solution import if the solution version with the same number exists?
Thanks,
Steve
Beta Was this translation helpful? Give feedback.
All reactions