You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Move plugins-info.txt generation from buildInfo to releaseInfo task
- Add validation task to prevent releases with stale metadata
- Use GITHUB_RUN_NUMBER for build counter in CI to preserve incrementing across builds
- Validate build number and commit ID match GitHub Actions environment variables
- Add outputs.upToDateWhen { false } to ensure metadata tasks always run
- Update task documentation with detailed descriptions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
thrownewGradleException("Build number mismatch: build-info.properties has '${actualBuild}' but GITHUB_RUN_NUMBER is '${expectedBuild}'. Run 'make assemble' to fix.")
311
+
}
312
+
313
+
def actualCommit = props.getProperty('commitId')
314
+
def expectedCommit =System.getenv('GITHUB_SHA').take(9) // GitHub SHA is full hash, we use short form
315
+
if (actualCommit != expectedCommit) {
316
+
thrownewGradleException("Commit ID mismatch: build-info.properties has '${actualCommit}' but GITHUB_SHA is '${expectedCommit}'. Run 'make assemble' to fix.")
317
+
}
318
+
319
+
println"✅ Build info validation passed: build=${actualBuild}, commitId=${actualCommit}"
320
+
println"✅ Plugin version validation passed: all ${expected.size()} plugin versions match"
321
+
}
322
+
}
239
323
240
324
/*
241
325
* Compile sources and copies all libs to target directory
0 commit comments