Skip to content


Add the following stage in your Jenkinsfile

You may activate reporter or E-mail reporter to access detailed logs and fixed source

// Lint with MegaLinter:
stage('MegaLinter') {
    agent {
        docker {
            image 'oxsecurity/megalinter:v7'
            args "-u root -e VALIDATE_ALL_CODEBASE=true -v ${WORKSPACE}:/tmp/lint --entrypoint=''"
            reuseNode true
    steps {
        sh '/'
    post {
        always {
            archiveArtifacts allowEmptyArchive: true, artifacts: 'mega-linter.log,megalinter-reports/**/*', defaultExcludes: false, followSymlinks: false

CloudBees themselves made a nice tutorial about how to use MegaLinter with Jenkins !