Replies: 1 comment
-
I think you could take inspiration on this strategy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I'm looking for guidance regarding a method to check the package/package.xml before deploying.
My sgd command is as follows:
My force:source:deploy command is as follows:
We have some valid scenarios wherein our jenkins pipeline is triggered, but there are no files in the package/package.xml that was generated from the sgd:source:delta command.
Is there a recommended way to check if the output file from sgd:source:delta (package/package.xml) for any files BEFORE deployment? Jenkins file is in Groovy, with the script commands in Bash.
I'd implement this logic into a separate stage that checks if package/package.xml is empty, if it is empty, do not proceed to deployment. If it is not empty, proceed to the deployment stage.
Beta Was this translation helpful? Give feedback.
All reactions