The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Validating Python Scripts using Bamboo

GP
December 31, 2019

I have a lot of Python + Spark scripts in bitbucket, I use bamboo to do some variable replacement and deploy into a target environment.  I might need to validate the code using Pylint or sonarqube(not sure if Sonarqube will support python). any guidance on how to start with ?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Cristiano Mariano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 1, 2020

Hi! How are you doing?

In fact you could combine both Pylint and SonarQube.

You would have to install Pylint and Sonar Scanner in your Bamboo agent machine.

In your script you would have to call Pylint and then send the results to SonarQube using either the Sonar for Bamboo paid app (https://marketplace.atlassian.com/apps/1212756/sonar-for-bamboo?hosting=server&tab=overview) or the Sonar Scanner command line.

This page describes how to generate the Pylint report and how to inform SonarQube the path of it: https://docs.sonarqube.org/latest/analysis/languages/python/ 

Hope this helps!

GP
May 19, 2020

The Sonarqube paid add has specific to Java. Do we have for Python?

TAGS
AUG Leaders

Atlassian Community Events