1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
patchback[bot] 82225e5850
jenkins_build: Support stop a running Jenkins build (#2850) (#2861)
* 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>
(cherry picked from commit 860b2b89a3)

Co-authored-by: Tong He <68936428+unnecessary-username@users.noreply.github.com>
2021-06-24 05:22:41 +00:00
..
action iptables_state: fix async status call (-> action plugin) (#2711) (#2729) 2021-06-06 18:10:29 +02:00
become meta/runtime.yml and __init__.py cleanup (#2632) (#2653) 2021-05-27 20:15:22 +02:00
cache meta/runtime.yml and __init__.py cleanup (#2632) (#2653) 2021-05-27 20:15:22 +02:00
callback callback_splunk - Add user-configurable event correlation id (#2790) (#2817) 2021-06-16 21:02:00 +02:00
connection meta/runtime.yml and __init__.py cleanup (#2632) (#2653) 2021-05-27 20:15:22 +02:00
doc_fragments meta/runtime.yml and __init__.py cleanup (#2632) (#2653) 2021-05-27 20:15:22 +02:00
filter meta/runtime.yml and __init__.py cleanup (#2632) (#2653) 2021-05-27 20:15:22 +02:00
inventory scaleway: Misc doc changes (#2776) (#2786) 2021-06-11 19:29:02 +02:00
lookup Add domain option to onepassword lookup (#2735) (#2760) 2021-06-08 12:09:49 +02:00
module_utils [PR #2731/6a41fba2 backport][stable-3] ModuleHelper - also uses LC_ALL to force language (#2736) 2021-06-07 13:27:30 +02:00
modules jenkins_build: Support stop a running Jenkins build (#2850) (#2861) 2021-06-24 05:22:41 +00:00