Skip to content

Commit

Permalink
Don't sync display name from template to implementors
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Carter committed Dec 10, 2015
1 parent 6601680 commit 94911e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static void handleTemplateImplementationSaved(AbstractProject implementat
Map<TriggerDescriptor, Trigger> oldTriggers = implementationProject.getTriggers();
boolean shouldBeDisabled = implementationProject.isDisabled();
String description = implementationProject.getDescription();
String displayName = implementationProject.getDisplayNameOrNull();
AuthorizationMatrixProperty oldAuthMatrixProperty = (AuthorizationMatrixProperty) implementationProject.getProperty(AuthorizationMatrixProperty.class);
SCM oldScm = (SCM) implementationProject.getScm();
JobProperty oldOwnership = implementationProject.getProperty("com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty");
Expand All @@ -120,6 +121,8 @@ public static void handleTemplateImplementationSaved(AbstractProject implementat
fixProperties(implementationProject, property, implementationIsTemplate);
fixParameters(implementationProject, oldImplementationParameters);

ReflectionUtils.setFieldValue(AbstractItem.class, implementationProject, "displayName", displayName);

if (!property.getSyncBuildTriggers()) {
fixBuildTriggers(implementationProject, oldTriggers);
}
Expand Down

0 comments on commit 94911e8

Please sign in to comment.