pipeline { environment { QODANA_TOKEN = credentials('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiIzZE1STiIsInByb2plY3QiOiJ6eFowYSIsInRva2VuIjoiMzdiOGUifQ.6d6pjvO81BpH6Eg1F32PWJqbUcDVitooeAYOBE_bXAU') } agent { docker { args ''' -v "${WORKSPACE}":/data/project --entrypoint="" ''' image 'jetbrains/qodana-jvm' } } stages { stage('Qodana') { when { branch 'master' } steps { sh '''qodana''' } } } }