Repository navigation
MARKETPLACE_DEPLOYMENT
This guide explains how to use the automated marketplace deployment workflow to publish new versions of wolfralyze to the SonarQube Marketplace.
Before using the deployment workflow, you need to complete these one-time setup steps:
You need to fork both SonarSource repositories to your GitHub account:
-
Fork sonar-update-center-properties
- Go to: https://github.com/SonarSource/sonar-update-center-properties
- Click "Fork" button
- Fork to your account:
bceverly/sonar-update-center-properties
-
Fork sonarqube-community-branch-plugin-builds
- Go to: https://github.com/SonarSource/sonarqube-community-branch-plugin-builds
- Click "Fork" button
- Fork to your account:
bceverly/sonarqube-community-branch-plugin-builds
-
Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
-
Click "Generate new token (classic)"
-
Configure the token:
-
Name:
SONAR_MARKETPLACE_PAT - Expiration: Set to your preference (90 days or longer)
-
Scopes: Check the following:
- ✅
repo(Full control of private repositories) - ✅
workflow(Update GitHub Action workflows) - ✅
write:packages(Upload packages)
- ✅
-
Name:
-
Click "Generate token"
-
IMPORTANT: Copy the token immediately (you won't be able to see it again)
- Go to your wolfralyze repository on GitHub
- Navigate to: Settings → Secrets and variables → Actions
- Click "New repository secret"
- Add these two secrets:
-
Name:
SONAR_MARKETPLACE_PAT - Value: Paste the Personal Access Token you created above
- Purpose: Allows workflow to create PRs on your behalf
-
Name:
USER_EMAIL -
Value: Your GitHub email (e.g.,
your-email@example.com) - Purpose: Used for git commit author information
Before running the deployment workflow, you must create and push a new version tag:
# Make sure you're on the main branch with latest changes
git checkout master
git pull origin master
# Create a new tag (e.g., v1.0.3)
git tag v1.0.3
# Push the tag to GitHub
git push origin v1.0.3Tag Naming Convention: Use semantic versioning with a v prefix (e.g., v1.0.3, v2.0.0)
After creating the tag, regenerate the comprehensive release notes file and commit it:
# Generate comprehensive release notes (all versions from v1.0.0 onwards)
make release-notes
# Review the generated RELEASE_NOTES.md file
cat RELEASE_NOTES.md
# Commit it to version control
git add RELEASE_NOTES.md
git commit -m "Update release notes for v1.0.3"
git push origin masterThe make release-notes target automatically generates a comprehensive RELEASE_NOTES.md file containing:
- All versions from v1.0.0 onwards
- Newest version at the top
- Commits for each version
- Full changelog links between versions
Note: You need to run this after every new tag to keep RELEASE_NOTES.md up to date.
- Go to your wolfralyze repository on GitHub
- Click "Releases" → "Create a new release"
- Select the tag you just created (e.g.,
v1.0.3) - Fill in release details:
- Title: wolfralyze v1.0.3
- Description: Describe the changes in this release
-
IMPORTANT: Upload the JAR file as a release asset
- Build the plugin:
./gradlew clean build - Upload:
build/libs/wolfralyze-1.0.3.jar
- Build the plugin:
- Click "Publish release"
- Go to your wolfralyze repository on GitHub
- Click "Actions" tab
- Select "Deploy New Release" workflow from the left sidebar
- Click "Run workflow" button
- Choose options:
- Branch: master
-
Dry run:
- ☐
false(default) - Creates actual PRs - ☑
true- Test run without creating PRs (recommended first time)
- ☐
- Click "Run workflow"
The workflow will:
- ✅ Detect the latest tag automatically
- ✅ Generate release notes from commits since previous tag
- ✅ Build and verify the plugin JAR
- ✅ Update
wolfralyze.propertiesin sonar-update-center-properties - ✅ Create PR #1 to SonarSource/sonar-update-center-properties
- ✅ Create metadata file in sonarqube-community-branch-plugin-builds
- ✅ Create PR #2 to SonarSource/sonarqube-community-branch-plugin-builds
After the PRs are created:
- SonarSource team will review your PRs
- They may request changes or approve directly
- Once approved and merged, your plugin will appear in the marketplace
- Timeline: Usually 1-3 business days for review
Cause: The built JAR filename doesn't match the version tag.
Fix: Ensure your build.gradle version matches the git tag:
version = '1.0.3' // Must match tag v1.0.3Cause: PAT token doesn't have correct permissions or has expired.
Fix:
- Verify
SONAR_MARKETPLACE_PATsecret is set correctly - Check token hasn't expired
- Regenerate token with correct scopes if needed
Cause: Network/authentication issue with Git.
Fix: Verify the forks exist at:
https://github.com/bceverly/sonar-update-center-propertieshttps://github.com/bceverly/sonarqube-community-branch-plugin-builds
Recommendation: Always run with "Dry run" enabled first to verify everything works before creating actual PRs.
# Adds version to list
publicVersions=1.0.2,1.0.3
# Adds version-specific config
1.0.3.description=Bug fixes and improvements
1.0.3.sqs=[2025.1,LATEST]
1.0.3.sqcb=[24.12,LATEST]
1.0.3.downloadUrl=https://github.com/bceverly/wolfralyze/releases/download/v1.0.3/wolfralyze-1.0.3.jar
1.0.3.changelogUrl=https://github.com/bceverly/wolfralyze/releases/tag/v1.0.3
1.0.3.date=2025-01-15Creates a new file: 1.0.3.json
{
"version": "1.0.3",
"downloadUrl": "https://github.com/bceverly/wolfralyze/releases/download/v1.0.3/wolfralyze-1.0.3.jar",
"changelogUrl": "https://github.com/bceverly/wolfralyze/releases/tag/v1.0.3",
"compatibleSQVersions": ["2025.1", "LATEST"],
"date": "2025-01-15"
}- ✅ Secrets are never exposed in logs
- ✅ PRs are created using your personal credentials
- ✅ No "Claude" or automated user accounts
- ✅ You maintain full control and attribution
⚠️ Keep your PAT secure - treat it like a password⚠️ Rotate PAT if compromised