-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: warnings-ng-plugin
-
Environment:Latest Jenkins LTS with all plugins updated
Hello!
Â
When trying to reset the quality gate of a tool with a custom result id nothing seems to happen, but if we do not specify a custom result id it works as expected. We use warnings-ng like this:
recordIssues(
enabledForFailure: true, aggregatingResults: false,
tools: [
flake8(pattern: 'test-results/ruff_report', reportEncoding: 'UTF-8', id: 'ruff', name: 'Ruff'),
myPy(pattern: 'test-results/mypy_dae_report', reportEncoding: 'UTF-8', id: 'mypy-dae', name: 'MyPy - dae'),
myPy(pattern: 'test-results/mypy_wdae_report', reportEncoding: 'UTF-8', id: 'mypy-wdae', name: 'MyPy - wdae'),
pyLint(pattern: 'test-results/pyright_report', reportEncoding: 'UTF-8', id: 'pyright', name: 'Pyright'), Â Â Â Â Â Â Â Â pyLint(pattern: 'test-results/mypy_dae_pylint_report', reportEncoding: 'UTF-8', id: 'mypy-dae-pylint', name: 'MyPy - dae (converted to PyLint)'),
pyLint(pattern: 'test-results/mypy_wdae_pylint_report', reportEncoding: 'UTF-8', id: 'mypy-wdae-pylint', name: 'MyPy - wdae (converted to PyLint)'),
pyLint(pattern: 'test-results/pylint_report', reportEncoding: 'UTF-8')
],
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
)
We managed to reset the quality gate of our result from pylint with id "pyright" by hardcoding the "pyright" string here:
in the place ofÂ
labelProvider.getId()
Â
Regards,
Hristo Stefanov