@ -40,10 +40,19 @@ pipeline:
slack:
image: plugins/slack
secrets: [ slack_webhook ]
template: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
when:
status: [ failure, success ]
cleanup:
commands:
- docker system prune -f
status: failure
@ -78,7 +78,7 @@ namespace Squidex.Infrastructure
{
var typeNameAttribute = type.GetTypeInfo().GetCustomAttribute<TypeNameAttribute>();
if (typeNameAttribute != null && !string.IsNullOrWhiteSpace(typeNameAttribute.TypeName))
if (!string.IsNullOrWhiteSpace(typeNameAttribute?.TypeName))
Map(type, typeNameAttribute.TypeName);
}