mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merged in hotfix/publish-plugin-improvements (pull request #377)
Publishing plugin improvements Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
7dcf0d5ffa
3 changed files with 10 additions and 2 deletions
|
|
@ -40,6 +40,15 @@ class CleanUp(pyblish.api.InstancePlugin):
|
||||||
active = True
|
active = True
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
|
# Get the errored instances
|
||||||
|
failed = []
|
||||||
|
for result in instance.context.data["results"]:
|
||||||
|
if (result["error"] is not None and result["instance"] is not None
|
||||||
|
and result["instance"] not in failed):
|
||||||
|
failed.append(result["instance"])
|
||||||
|
assert instance not in failed, ("Result of '{}' instance "
|
||||||
|
"were not success".format(instance.data["name"]))
|
||||||
|
|
||||||
if [ef for ef in self.exclude_families
|
if [ef for ef in self.exclude_families
|
||||||
if instance.data["family"] in ef]:
|
if instance.data["family"] in ef]:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
"render",
|
"render",
|
||||||
"imagesequence",
|
"imagesequence",
|
||||||
"review",
|
"review",
|
||||||
"render",
|
|
||||||
"rendersetup",
|
"rendersetup",
|
||||||
"rig",
|
"rig",
|
||||||
"plate",
|
"plate",
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class IncrementScriptVersion(pyblish.api.ContextPlugin):
|
||||||
def process(self, context):
|
def process(self, context):
|
||||||
|
|
||||||
assert all(result["success"] for result in context.data["results"]), (
|
assert all(result["success"] for result in context.data["results"]), (
|
||||||
"Atomicity not held, aborting.")
|
"Publishing not succesfull so version is not increased.")
|
||||||
|
|
||||||
instances = context[:]
|
instances = context[:]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue