use of org.jboss.pnc.model.Artifact in project pnc by project-ncl.
the class BuildProviderImpl method setDependentArtifacts.
@RolesAllowed(SYSTEM_USER)
@Override
public void setDependentArtifacts(String buildId, List<String> artifactIds) {
BuildRecord buildRecord = repository.queryById(parseId(buildId));
Set<Artifact> artifacts = artifactIds.stream().map(aId -> Artifact.Builder.newBuilder().id(Integer.valueOf(aId)).build()).collect(Collectors.toSet());
buildRecord.setDependencies(artifacts);
repository.save(buildRecord);
}
Aggregations