Examples
Table of Contents
Complete End-to-End Workflow
Sprint Coverage Report Generation
#!/bin/bash
# sprint_coverage_report.sh
# Configuration
export SETTINGS_FILE="settings"
export DAYS_BACK=30
# Step 1: Tag code changes from GitHub PRs
echo "==> Tagging code changes from pull requests..."
python3 US_SRC_tag_repos_by_github_prs.py \
--settings ${SETTINGS_FILE} \
--days-back ${DAYS_BACK} \
--log-level INFO
# Step 2: Generate report data files from Jira
echo "==> Generating coverage report data..."
python3 US1_RPT_create_report_info_files.py \
--settings ${SETTINGS_FILE} \
--ticket-source jira \
--log-level INFO
# Step 3: Create HTML reports
echo "==> Creating HTML reports..."
python3 US2_RPT_create_html_reports.py \
--settings ${SETTINGS_FILE} \
--log-level INFO
# Step 4: Create Confluence pages
echo "==> Publishing to Confluence..."
python3 US3_RPT_create_confluence_reports.py \
--settings ${SETTINGS_FILE} \
--log-level INFO
# Step 5: Update Jira tickets with coverage
echo "==> Updating Jira tickets..."
python3 US4_RPT_update_jira.py \
--settings ${SETTINGS_FILE} \
--log-level INFO
echo "==> Sprint coverage report complete!"
echo "View reports in: $(grep -o '"output_folder"[^,]*' ${SETTINGS_FILE} | cut -d'"' -f4)"Sprint Coverage Report (with SeaLights Auto-Tagging)
Tagging Workflows
Example 1: Tag from GitHub Pull Requests
Example 2: Tag from Git Commit History
Example 3: Tag from Jira-Linked PRs
Example 4: Dry Run - Generate Files Without Tagging
Example 5: Tag Specific Build by BSID
Reporting Workflows
Example 6: Generate Reports for Azure DevOps
Example 7: Reuse Existing Coverage Report
Example 8: Create Only HTML Reports
Example 9: Update Jira On-Premises Plugin
CI/CD Integration
Example 10: GitHub Actions Workflow
Example 11: Jenkins Pipeline
Example 12: GitLab CI/CD
Advanced Scenarios
Example 13: Multi-Environment Configuration
Example 14: Integration Build Processing
Example 15: Cleanup Old Coverage Data
Example 16: Custom Ticket Extraction
Example 17: Parallel Processing for Large Repos
Example 18: Report with Custom Date Range
Example 19: Conditional Reporting Based on Coverage
Example 20: Notification on Low Coverage
Sample Output
HTML Report Sample Structure
ReportInfo JSON Structure
Next Steps
Last updated
Was this helpful?

