1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

jenkins_job_info: Remove necessities of password or token. (#2948)

* Remove necessities on password or token.

* Upper case letter -> Lower case letter

Co-authored-by: Amin Vakil <info@aminvakil.com>

* Documentation update.

* C -> I

Co-authored-by: Amin Vakil <info@aminvakil.com>
This commit is contained in:
Tong He 2021-07-09 02:32:46 -04:00 committed by GitHub
parent 518ace2562
commit d97a9b5961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- jenkins_job_info - the ``password`` and ``token`` parameters can also be omitted to retrieve only public information (https://github.com/ansible-collections/community.general/pull/2948).

View file

@ -33,12 +33,12 @@ options:
type: str type: str
description: description:
- Password to authenticate with the Jenkins server. - Password to authenticate with the Jenkins server.
- This is a required parameter, if C(token) is not provided. - This is mutually exclusive with I(token).
token: token:
type: str type: str
description: description:
- API token used to authenticate with the Jenkins server. - API token used to authenticate with the Jenkins server.
- This is a required parameter, if C(password) is not provided. - This is mutually exclusive with I(password).
url: url:
type: str type: str
description: description:
@ -59,6 +59,11 @@ author:
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Get all Jenkins jobs anonymously
- community.general.jenkins_job_info:
user: admin
register: my_jenkins_job_info
# Get all Jenkins jobs using basic auth # Get all Jenkins jobs using basic auth
- community.general.jenkins_job_info: - community.general.jenkins_job_info:
user: admin user: admin
@ -232,9 +237,6 @@ def main():
['password', 'token'], ['password', 'token'],
['name', 'glob'], ['name', 'glob'],
], ],
required_one_of=[
['password', 'token'],
],
supports_check_mode=True, supports_check_mode=True,
) )