Skip to content

hadolintExecute

Description

Executes the Haskell Dockerfile Linter which is a smarter Dockerfile linter that helps you build best practice Docker images. The linter is parsing the Dockerfile into an abstract syntax tree (AST) and performs rules on top of the AST.

Parameters

name mandatory default possible values
qualityGates no [[threshold:1, type:TOTAL_ERROR, unstable:false]]
reportFile no hadolint.xml
reportName no HaDoLint
script yes
  • qualityGates - Quality Gates to fail the build, see warnings-ng plugin documentation.
  • reportFile - Name of the result file used locally within the step.
  • reportName - Name of the checkstyle report being generated our of the results.
  • 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
qualityGates X
reportFile X
reportName X
script

Exceptions

None

Examples

hadolintExecute script: this