Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i tried to configure qodana to bitbuket pipeline for sending report but i have an issue.

deepak deshwar
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!
November 30, 2023

I tried to configure Qodana to the Bitbucket pipeline for sending reports but I have an issue. in my project I used a private repo dependency to design my bitbucket pipeline for downloading my private repository dependency,I have a settings.xml file also  but I am unable to send a report its show error like:_  

023-11-30 12:12:13,422 [ 355983] SEVERE - #c.i.c.InspectionApplicationBase - Maven project Aggrr has unresolved artifacts: [com.instantsys.geocoder:geocoder:jar:2.4:compile, net.elmergarduno:j-calais:jar:0.2:compile, com.myjavatools:mjxml:jar:1.0:compile,

my current script is :
  • image: Atlassian/default-image:4
  • pipelines:
  • branches:
  • main:
  • - step:
  • name: Qodana
  • caches:
  • - qodana
  • image: jetbrains/qodana-jvm
  • script:
  • - export QODANA_TOKEN=$QODANA_TOKEN # Export the environment variable
  • - qodana --results-dir=$BITBUCKET_CLONE_DIR/.qodana --report-dir=$BITBUCKET_CLONE_DIR/.qodana/report --cache-dir=$BITBUCKET_CLONE_DIR/.qodana/cache -DskipTests=true
  • artifacts:
  • - .qodana/report
  • definitions:
  • caches:
  • qodana: .qodana/cache

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2023

Hi Deepak and welcome to the community!

The error indicates an issue with your project configuration rather than a Pipelines error. Pipelines builds that run on Atlassian infrastructure use Docker containers.

You can use the following guide to debug your build locally with Docker, and fix and test any changes:

Since your build is using environment variables, please take note of the section Environment variables in that guide. The $BITBUCKET_CLONE_DIR variable is also not available locally, you can replace it with the path in the container where the repo is located.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events