Nothing changed in the Ansible code for this deploy, however, the
installation for job builder is breaking. It's only after Ansible and/or
Vagrant were upgraded:
---
- name: install pip
easy_install: name=pip
- name: install pbr
pip: name=pbr
- name: download jenkins-job-builder
git:
repo: https://github.com/openstack-infra/jenkins-job-builder.git
dest: /opt/jenkins-job-builder
version: 1.1.0
update: no
register: jjb_git
- name: copy jenkins job builder config
copy: src=jenkins_job_builder/setup.cfg
dest=/opt/jenkins-job-builder/setup.cfg mode=0644
register: jjb_config
- name: copy jenkins job builder modules
copy: src=jenkins_job_builder/modules/{{item}}.py
dest=/opt/jenkins-job-builder/jenkins_jobs/modules/{{item}}.py mode=0644
with_items:
- artifactory
- gradle
- rundeck
- graphite
register: jjb_module
- name: install jenkins-job-builder
command: python setup.py install
args:
chdir: /opt/jenkins-job-builder
when: jjb_git.changed or jjb_config.changed or jjb_module.changed
On Wednesday, May 20, 2015 at 10:19:43 PM UTC-6, tkuratomi wrote:
>
> Hmm... how does ansible figure into this? Looking at the traceback it
> seems like the jenkins-job tool is somehow miss-installed (it's not finding
> its required libraries).
>
> -Toshio
> On May 20, 2015 5:40 AM, "William Attwood" <[email protected]
> <javascript:>> wrote:
> >
> > Running Ansible 1.9.1 and Vagrant 1.7.2. Recently, without code
> changes, and with software version updates, every job .yml file when doing
> a vagrant provision resulted in:
> >
> > stderr: Traceback (most recent call last):
> > File "/bin/jenkins-jobs", line 6, in <module>
> > from jenkins_jobs.cmd import main
> > File "/usr/lib/python2.7/site-packages/jenkins_jobs/cmd.py", line 17,
> in <module>
> > from six.moves import configparser, StringIO
> > ImportError: No module named six.moves
> >
> > This will repeat for every job .yml file. If I go into the machine it
> is failing on, and pip install six, it then starts to fail on the jenkins
> module, and so on and so forth.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected] <javascript:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/49bde536-b476-4cc0-8e0a-f20d300d4338%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/459c28a4-dd0e-4bc8-b674-8ca64e7f258c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.