protected void recordGeneratedArtifacts(List<MavenArtifact> generatedArtifacts, List<String> executedLifecyclePhases, @Nonnull Run run, @Nonnull TaskListener listener, @Nonnull PipelineMavenPluginDao dao) {
        if (LOGGER.isLoggable(Level.FINE)) {
            listener.getLogger().println("[withMaven] pipelineGraphPublisher - recordGeneratedArtifacts...");
        }
        for (MavenArtifact artifact : generatedArtifacts) {
            boolean skipDownstreamPipelines = this.skipDownstreamTriggers ||
                    (!executedLifecyclePhases.contains(this.lifecycleThreshold));

            if (LOGGER.isLoggable(Level.FINE)) {
                LOGGER.log(Level.FINE, "Build {0}#{1} - record generated {2}:{3}, version:{4}, " +
                                "executedLifecyclePhases: {5}, " +
                                "skipDownstreamTriggers:{6}, lifecycleThreshold: {7}",
                        new Object[]{run.getParent().getFullName(), run.getNumber(),
                                artifact.getId(), artifact.getType(), artifact.getVersion(),
                                executedLifecyclePhases,
                                skipDownstreamTriggers, lifecycleThreshold});
                listener.getLogger().println("[withMaven] pipelineGraphPublisher - Record generated artifact: " + artifact.getId() + ", version: " + artifact.getVersion() +
                        ", executedLifecyclePhases: " + executedLifecyclePhases +
                        ", skipDownstreamTriggers: " + skipDownstreamTriggers + ", lifecycleThreshold:" + lifecycleThreshold +
                        ", file: " + artifact.getFile());
            }
            dao.recordGeneratedArtifact(run.getParent().getFullName(), run.getNumber(),
                    artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), artifact.getType(), artifact.getBaseVersion(),
                    artifact.getRepositoryUrl(), skipDownstreamPipelines, artifact.getExtension(), artifact.getClassifier());
            if (("bundle".equals(artifact.getType()) || "nbm".equals(artifact.getType())) && "jar".equals(artifact.getExtension())) {
                // JENKINS-47069 org.apache.felix:maven-bundle-plugin:bundle uses the type "bundle" for "jar" files
                // record artifact as both "bundle" and "jar"
                dao.recordGeneratedArtifact(run.getParent().getFullName(), run.getNumber(),
                        artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), "jar", artifact.getBaseVersion(),
                        null, skipDownstreamPipelines, artifact.getExtension(), artifact.getClassifier());
            }
        }
    }
protected void recordGeneratedArtifacts ( List < MavenArtifact > generatedArtifacts , List < String > executedLifecyclePhases , @ Nonnull Run run , @ Nonnull TaskListener listener , @ Nonnull PipelineMavenPluginDao dao ) { if ( LOGGER . isLoggable ( Level . FINE ) ) { listener . getLogger ( ) . println ( "[withMaven] pipelineGraphPublisher - recordGeneratedArtifacts..." ) ; } for ( MavenArtifact artifact : generatedArtifacts ) { boolean skipDownstreamPipelines = this . skipDownstreamTriggers || ( ! executedLifecyclePhases . contains ( this . lifecycleThreshold ) ) ; if ( LOGGER . isLoggable ( Level . FINE ) ) { LOGGER . log ( Level . FINE , "Build {0}#{1} - record generated {2}:{3}, version:{4}, " + "executedLifecyclePhases: {5}, " + "skipDownstreamTriggers:{6}, lifecycleThreshold: {7}" , new Object [ ] { run . getParent ( ) . getFullName ( ) , run . getNumber ( ) , artifact . getId ( ) , artifact . getType ( ) , artifact . getVersion ( ) , executedLifecyclePhases , skipDownstreamTriggers , lifecycleThreshold } ) ; listener . getLogger ( ) . println ( "[withMaven] pipelineGraphPublisher - Record generated artifact: " + artifact . getId ( ) + ", version: " + artifact . getVersion ( ) + ", executedLifecyclePhases: " + executedLifecyclePhases + ", skipDownstreamTriggers: " + skipDownstreamTriggers + ", lifecycleThreshold:" + lifecycleThreshold + ", file: " + artifact . getFile ( ) ) ; } dao . recordGeneratedArtifact ( run . getParent ( ) . getFullName ( ) , run . getNumber ( ) , artifact . getGroupId ( ) , artifact . getArtifactId ( ) , artifact . getVersion ( ) , artifact . getType ( ) , artifact . getBaseVersion ( ) , artifact . getRepositoryUrl ( ) , skipDownstreamPipelines , artifact . getExtension ( ) , artifact . getClassifier ( ) ) ; if ( ( "bundle" . equals ( artifact . getType ( ) ) || "nbm" . equals ( artifact . getType ( ) ) ) && "jar" . equals ( artifact . getExtension ( ) ) ) { dao . recordGeneratedArtifact ( run . getParent ( ) . getFullName ( ) , run . getNumber ( ) , artifact . getGroupId ( ) , artifact . getArtifactId ( ) , artifact . getVersion ( ) , "jar" , artifact . getBaseVersion ( ) , null , skipDownstreamPipelines , artifact . getExtension ( ) , artifact . getClassifier ( ) ) ; } } }
@param generatedArtifacts           deployed artifacts
@param executedLifecyclePhases Maven lifecycle phases that have been gone through during the Maven execution (e.g. "..., compile, test, package..." )
@param run
@param listener
@param dao