src/main/java/com/capitalone/dashboard/model/Pipeline.java
/**
     * Adds a commit to a given environment.  Will create a new stage if it doesn't exist.
     * @param environmentName the environment name including the pseudo environments "Build" and "Commit"
     * @param commit
     */
Adds a commit to a given environment.  Will create a new stage if it doesn't exist.
@param environmentName the environment name including the pseudo environments "Build" and "Commit"
@param commit
Adds a commit to a given environment . Will create a new stage if it doesn ' t exist . @param environmentName the environment name including the pseudo environments " Build " and " Commit " @param commit
public void addCommit(String environmentName, PipelineCommit commit){
        if(!this.getEnvironmentStageMap().containsKey(environmentName)){
            this.getEnvironmentStageMap().put(environmentName, new EnvironmentStage());
        }
        this.getEnvironmentStageMap().get(environmentName).getCommits().add(commit);
    }
public void addCommit ( String environmentName , PipelineCommit commit ) { if ( ! this . getEnvironmentStageMap ( ) . containsKey ( environmentName ) ) { this . getEnvironmentStageMap ( ) . put ( environmentName , new EnvironmentStage ( ) ) ; } this . getEnvironmentStageMap ( ) . get ( environmentName ) . getCommits ( ) . add ( commit ) ; }
Adds a commit to a given environment.
Adds a commit to a given environment .