Skip to content



name mandatory default possible values
defaultDubRegistry no
dockerEnvVars no
dockerImage no dlang2/dmd-ubuntu:latest
dockerOptions no
dockerWorkspace no
dubCommand no
script yes
  • defaultDubRegistry - URL of default DUB registry
  • dockerEnvVars - Environment variables to set in the container, e.g. [http_proxy: 'proxy:8080'].
  • dockerImage - Name of the docker image that should be used, in which node should be installed and configured. Default value is 'dlang2/dmd-ubuntu:latest'.
  • dockerOptions - Docker options to be set when starting the container.
  • dockerWorkspace - Kubernetes only: Specifies a dedicated user home directory for the container which will be passed as value for environment variable HOME.
  • dubCommand - Which DUB command should be executed.
  • script - The common script environment of the Jenkinsfile running. Typically the reference to the script calling the pipeline step is provided with the this parameter, as in script: this. This allows the function to access the commonPipelineEnvironment for retrieving, e.g. configuration parameters.

Step configuration

We recommend to define values of step parameters via config.yml file.

In following sections of the config.yml the configuration is possible:

parameter general step/stage
defaultDubRegistry X
dockerEnvVars X
dockerImage X
dockerOptions X
dockerWorkspace X
dubCommand X


The step depends on the following Jenkins plugins

The kubernetes plugin is only used if running in a kubernetes environment. Transitive dependencies are omitted.

The list might be incomplete.

Consider using the ppiper/jenkins-master docker image. This images comes with preinstalled plugins.




dubExecute script: this, dockerImage: 'dlang2/dmd-ubuntu:latest', dubCommand: 'build'