SAP / jenkins-library

Jenkins shared library for Continuous Delivery pipelines.
https://www.project-piper.io
Apache License 2.0
772 stars 586 forks source link

Error with execution of SonarExecute Scan from Jenkins piper library #4838

Closed CargillRamya closed 2 months ago

CargillRamya commented 5 months ago

Please note: I had set up a jenkins pipeline job and all configurations for sonar server are done in the backend. Also, config.yml is set up with values

steps: sonarExecuteScan: sonarTokenCredentialsId: 'sonarqube_integ' proxy: '...' sonarServerUrl: '...' dockerEnvVars: http_proxy: "..." https_proxy: "..."

But I get the below error:

sarunkumar1990 commented 5 months ago

Also we have already installed sonarqube plugin and have set SONAR_USER_HOME within our environment variables section in JenkinsFile but piper does not look at this variable and always tries to download the CLI.

Is there a possibility to check if this variable is already set and use the CLI which is already installed instead of downloading each time?

github-actions[bot] commented 3 months ago

Thank you for your contribution! This issue is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

github-actions[bot] commented 2 months ago

Issue got stale and no further activity happened. It has automatically been closed. Please re-open in case you still consider it relevant.