This project provides a comprehensive suite of tools for fetching and visualizing data from Jira and SonarQube platforms. It includes Python scripts for data fetching and plotting, organized into separate directories for Jira and SonarQube, alongside the necessary configuration and requirements for running the project.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have Python installed on your system. This project requires Python 3.x.
- Clone the Repository
Start by cloning the repository to your local machine:
git clone https://github.com/thibaudbrg/Jira-Sonarqube-Fetcher.git
cd Jira-Sonarqube-Fetcher
- Create a Virtual Environment
It's recommended to create a virtual environment for Python projects to manage dependencies efficiently.
python3 -m venv venv
Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On Unix or MacOS:
source venv/bin/activate
- Install Dependencies
Install the project dependencies with:
pip install -r requirements.txt
Copy the testers_config.json.example
to testers_config.json
and edit it to match your configuration.
- Fetching Data:
jira_fetch.py
supports fetching data for X months until today. Usage:
python jira/jira_fetch.py -m <months> [-v --verbose] [-h --help]
- Plotting Data:
jira_plot.py
can be used to generate visualizations based on fetched data. Usage:
python jira/jira_plot.py [-v --verbose] [-h --help]
Copy the project_keys.json.example
to project_keys.json
and edit it to match your configuration.
- Fetching Data:
Similar to the Jira fetch script, sonarqube_fetch.py
can be used for fetching data. Usage:
python sonarqube/sonarqube_fetch.py -m <months> [-v --verbose] [-h --help]
- Plotting Data:
sonarqube_plot.py
does not require any parameters and can be run as follows:
python sonarqube/sonarqube_plot.py
- Data fetched from Jira and SonarQube is stored in their respective
data
directories withinjira
andsonarqube
folders. - Plots generated by the plot scripts are stored in the
plots
directories withinjira
andsonarqube
folders.
This project is licensed under the MIT License - see the LICENSE
file for details.