peopledoc.jenkins-api
novafloss.jenkins-api
This module installs jenkins-python and includes the ansible binding module.
Here’s a complete list of the available API commands:
Requirements
No specific requirements.
Dependencies
No dependencies are needed, but we suggest including FGtatsuro.python-requirements
in your playbook first. This ensures that pip
is up to date and that the installation of requests
won't cause issues.
Role Variables
There are no role variables.
Example Playbook
Here is an example of how to use this role, including how to pass in variables:
- hosts: slave
roles:
- FGtatsuro.python-requirements
- novafloss.jenkins-api
tasks:
- jenkins_credentials:
jenkins_url: https://jenkins.mycompany.com/
name: github-https
cls: com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl
args:
- Allow github https cloning
- my github token
- 816a8c3f0130e8b3a83ac65a5e4d1f26e121863e
- jenkins_api:
jenkins_url: https://jenkins.mycompany.com/
command: node_exists
args:
- node-1
register: result
- debug:
var: result.node_exists
Note: The jenkins-api
module stores the API result in a dictionary, using the command name as the key. For instance, the result of the previous task is stored as result.node_exists
.
Copyright
Licensed under BSD by @PeopleDoc and contributors.
Installa
ansible-galaxy install peopledoc.jenkins-api
Licenza
Unknown
Download
75.1k
Proprietario
Top-Notch HR Services to Employees. Faster.