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:
parent
518ace2562
commit
d97a9b5961
2 changed files with 9 additions and 5 deletions
|
@ -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).
|
|
@ -33,12 +33,12 @@ options:
|
|||
type: str
|
||||
description:
|
||||
- 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:
|
||||
type: str
|
||||
description:
|
||||
- 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:
|
||||
type: str
|
||||
description:
|
||||
|
@ -59,6 +59,11 @@ author:
|
|||
'''
|
||||
|
||||
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
|
||||
- community.general.jenkins_job_info:
|
||||
user: admin
|
||||
|
@ -232,9 +237,6 @@ def main():
|
|||
['password', 'token'],
|
||||
['name', 'glob'],
|
||||
],
|
||||
required_one_of=[
|
||||
['password', 'token'],
|
||||
],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue