Codacy

Codacy is an automated code analysis/quality tool that helps developers to ship better software in a faster manner.

Prerequisite: Make sure you have set up an account in Codacy or get the API keys from an admin.

  1. On the Edit build pipeline page, select the Pre-Build Stage (or Post-Build Stage).

  2. Click + Add task.

  3. Select Codacy from PRESET PLUGINS.

  • Enter a relevant name in the Task name field. It is a mandatory field.

  • Enter a descriptive message for the task in the Description field. It is an optional field.

  • Provide a value for the input variable. Note: The value may be any of the values from the previous build stages, a global variable, or a custom value.

VariableFormatDescription

CodacyEndpoint

String

API endpoint for Codacy

GitProvider

String

Git provider for the scanning

CodacyApiToken

String

API token for Codacy. If it is provided, it will be used, otherwise it will be picked from Global secret (CODACY_API_TOKEN).

Organisation

String

Your Organization for Codacy

RepoName

String

Your Repository name

Branch

String

Your branch name

  • Trigger/Skip Condition refers to a conditional statement to execute or skip the task. You can select either:

    • Set trigger conditions or

    • Set skip conditions

  • Pass/Failure Condition refers to conditions to execute pass or fail of your build. You can select either:

    • Set pass conditions or

    • Set failure conditions

  • Click Update Pipeline.

Last updated