All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.bamboo.specs.codegen.emitters.plan.PlanForceStopBuildEmitter Maven / Gradle / Ivy

There is a newer version: 10.1.0
Show newest version
package com.atlassian.bamboo.specs.codegen.emitters.plan;

import com.atlassian.bamboo.specs.api.codegen.CodeEmitter;
import com.atlassian.bamboo.specs.api.codegen.CodeGenerationContext;
import com.atlassian.bamboo.specs.api.codegen.CodeGenerationException;
import org.jetbrains.annotations.NotNull;

public class PlanForceStopBuildEmitter implements CodeEmitter {
    @NotNull
    @Override
    public String emitCode(@NotNull CodeGenerationContext context, @NotNull Boolean value) throws CodeGenerationException {
        if (Boolean.TRUE.equals(value)) {
            return ".forceStopHungBuilds()";
        } else {
            return ".ignoreHungBuilds()";
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy