<?xml version="1.0" encoding="UTF-8"?>


<dsl-extension kind="buildStep" type="bazel" generateDslJar="true">
    <class name="BazelStep">
        <description>
            A [bazel step](https://github.com/JetBrains/teamcity-bazel-plugin) to execute bazel command
        </description>
    </class>
    <function name="bazel">
        <description>
            Adds a [bazel step](https://github.com/JetBrains/teamcity-bazel-plugin) to execute bazel command
            @see BazelStep
        </description>
    </function>
    <params>
        <param name="teamcity.build.workingDir" dslName="workingDir">
            <description>
                [Build working directory](https://confluence.jetbrains.com/display/TCDL/Build+Working+Directory) for
                script, specify it if it is different from the [checkout
                directory](https://confluence.jetbrains.com/display/TCDL/Build+Checkout+Directory).
            </description>
        </param>
        <param name="command">
            <description>
                Specify the bazel command name.
            </description>
        </param>
        <param name="targets">
            <description>Enter list of command targets.</description>
        </param>
        <param name="arguments">
            <description>Enter additional command line arguments for bazel command.</description>
        </param>
        <param name="startupOptions">
            <description>Enter additional options that appear before the bazel command.</description>
        </param>
        <param name="toolPath">
            <description>Enter the path to the Bazel tool.</description>
        </param>
        <param name="integration" type="Integration">
            <description>
                Specify the mode of integration between Bazel and the build agent.
                @see Integration
            </description>
        </param>
        <param name="successWhenNoTests" type="boolean">
            <description>Report success if testing was requested but no tests were found</description>
        </param>
        <param name="verbosity" dslName="logging" type="Verbosity">
            <description>
                Specify logging verbosity
                @see Verbosity
            </description>
        </param>
    </params>
    <types>
        <enum name="Verbosity">
            <description>
                Logging verbosity
            </description>
            <option name="Quiet" value="Quiet"/>
            <option name="Minimal" value="Minimal"/>
            <option name="Normal" value="Normal"/>
            <option name="Detailed" value="Detailed"/>
            <option name="Diagnostic" value="Diagnostic"/>
        </enum>
        <enum name="Integration">
            <description>
                Mode of integration between Bazel and the build agent
            </description>
            <option name="BinaryFile" value="BinaryFile"/>
            <option name="BuildEventService" value="BES"/>
        </enum>
    </types>
</dsl-extension>