Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to set up bitbucket pipline for pmd

MANGESH PATIL
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2024

Hi

I have configured the pipeline for pmd as follows.

 

            - unzip pmd-bin-7.0.0-rc1.zip
            - echo "Make sure there is no PMD error with a high priority"            
            - pmd-bin-7.0.0-rc1/bin/pmd.bat check -minimumpriority $PMD_MINIMUM_PRIORITY -d force-app -R custom-apex-rules.xml -f text -l apex
I tried with different option like
pmd-bin-7.0.0-rc1/bin/pmd.bat check
pmd-bin-7.0.0-rc1/bin/pmd check
but it is now working.
Thanks in advance.

1 answer

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2024

G'day, @MANGESH PATIL 

Welcome to the community!

I believe the path is incorrect, could you try using for example the following path:

/opt/atlassian/pipelines/agent/build/pmd-bin-7.0.0-rc1/bin/pmd check -minimumpriority $PMD_MINIMUM_PRIORITY

Let me know if that works.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events