ansible-jenkins | Ansible playbook : Jenkins | Continous Integration library
kandi X-RAY | ansible-jenkins Summary
kandi X-RAY | ansible-jenkins Summary
ansible-jenkins is an Ansible role. Use this role to install Jenkins and install/update plugins.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ansible-jenkins
ansible-jenkins Key Features
ansible-jenkins Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-jenkins
QUESTION
I am trying to use the jenkins_job module in Ansible and it keeps throwing up the error Unable to create job, Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
I trigger this error with the following task that lives in a file tasks/add_job.yml called by main.yml:
...ANSWER
Answered 2017-Jun-27 at 13:49It turns out it was the ansible_python_interpreter which was set to /usr/bin/python3
in my hosts inventory. When I set it to /usr/bin/python
the problem disappeared. Yay....
...Except that was only half the story. When I destroyed and recreated my VM it failed on the first step as the Ubuntu 16.04LTS does not have /usr/bin/python
it only has /usr/bin/python3
.
I didn't want to create symlinks or do virtenv stuff...so I just set the ansible_python_interpreter to /usr/bin/python
after I installed python2-dev apt package but before I ran the jenkins_script module. Then I set it back again after running my scripts.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-jenkins
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page