/** * Should use {@link #getArtifactSources(String, SpinnakerArtifact)} when it supports all types of * deployments. * * To future devs: In order to remove this method for good, the remaining callers of this method * need to be able to incorporate different repository sources. As of this writing (May 2018) the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.local.debian.LocalDebianServiceProvider} * and the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.bake.debian.BakeDebianServiceProvider} * are the two hold outs. */ @Deprecated public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName) { BillOfMaterials bom = getBillOfMaterials(deploymentName); return bom.getArtifactSources(); }
/** * Should use {@link #getArtifactSources(String, SpinnakerArtifact)} when it supports all types of * deployments. * * To future devs: In order to remove this method for good, the remaining callers of this method * need to be able to incorporate different repository sources. As of this writing (May 2018) the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.local.debian.LocalDebianServiceProvider} * and the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.bake.debian.BakeDebianServiceProvider} * are the two hold outs. */ @Deprecated public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName) { BillOfMaterials bom = getBillOfMaterials(deploymentName); return bom.getArtifactSources(); }
public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials bom = getBillOfMaterials(deploymentName); BillOfMaterials.ArtifactSources baseline = bom.getArtifactSources(); BillOfMaterials.ArtifactSources overrides = bom.getArtifactSources(artifact.getName()); return mergeArtifactSources(baseline, overrides); }
public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials bom = getBillOfMaterials(deploymentName); BillOfMaterials.ArtifactSources baseline = bom.getArtifactSources(); BillOfMaterials.ArtifactSources overrides = bom.getArtifactSources(artifact.getName()); return mergeArtifactSources(baseline, overrides); }