mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
jenkins_build: Support stop a running Jenkins build (#2850)
* Support stop a running Jenkins build. Meanwhile enrich document content and test cases. * Fix the inconsistencies regarding the function name. * Submit the changelog and fix a PEP8 issue. * Remedy whitespace related PEP8 issues. * Implement the idempotent test case for the stop build function. * Make sure it returns proper changed status when we stop a build repeatedly. * Fix incorrect usages on comparison with True or False and incorrect usages on validating the changed status. * In this mocking situation, adjust the mock return value and test case to perform unit testing. * Implement JenkinsMockIdempotent() to mock return value in idempotent test cases. * Fix issues reported by CI. * Refactor the code to avoid CI exception and remove get_build_status() from mock function as they should not be there. * Update plugins/modules/web_infrastructure/jenkins_build.py Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
07085785a3
commit
860b2b89a3
3 changed files with 126 additions and 13 deletions
|
@ -0,0 +1,4 @@
|
|||
minor_changes:
|
||||
- jenkins_build - support stopping a running jenkins build (https://github.com/ansible-collections/community.general/pull/2850).
|
||||
bugfixes:
|
||||
- jenkins_build - examine presence of ``build_number`` before deleting a jenkins build (https://github.com/ansible-collections/community.general/pull/2850).
|
Loading…
Add table
Add a link
Reference in a new issue