<?xml version="1.0" encoding="UTF-8"?>
<dsl-add-on kind="buildStep">
  <extends>
    <dsl type="bazel"/>
  </extends>
  <params>
    <param name="plugin.docker.imageId" dslName="dockerImage" type="string">
      <description>
        Specifies which Docker image to use for running this build step. I.e. the build step will be run inside specified docker image, using 'docker run' wrapper.
      </description>
    </param>
    <param name="plugin.docker.imagePlatform" dslName="dockerImagePlatform" type="ImagePlatform">
      <description>
        Specifies which Docker image platform will be used to run this build step.
      </description>
      <option name="path" value="PATH">
        <description>
          Sets filesystem path to Dockerfile
        </description>
        <param name="dockerfile.path" dslName="path" mandatory="true">
          <description>
            The specified path should be relative to the checkout directory.
          </description>
        </param>
      </option>
    </param>
    <param name="plugin.docker.pull.enabled" dslName="dockerPull" type="boolean" trueValue="true" falseValue="">
      <description>
        If enabled, "pull [image][dockerImage]" command will be run before docker run.
      </description>
    </param>
    <param name="plugin.docker.run.parameters" dslName="dockerRunParameters" type="string">
      <description>
        Additional docker run command arguments
      </description>
    </param>
  </params>
  <types>
    <enum name="ImagePlatform">
      <description>
        Docker image platforms
      </description>
      <option name="Any" value=""/>
      <option name="Linux" value="linux"/>
      <option name="Windows" value="windows"/>
    </enum>
  </types>
</dsl-add-on>
