[PKG-Openstack-devel] Bug#799277: jenkins-job-builder: AttributeError when updating jobs.

bertagaz bertagaz at ptitcanardnoir.org
Thu Sep 17 13:12:16 UTC 2015


Package: jenkins-job-builder
Version: 1.3.0-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

After an upgrade to the 1.3.0 version of the package on a Jessie system, it's
now impossible to update the jobs in Jenkins.

Whenever we issue the `jenkins-job-builder update /etc/jenkins_job/jobs/`
command, we get this traceback:

INFO:root:Updating jobs in ['/etc/jenkins_jobs/jobs/'] ([])
INFO:jenkins_jobs.builder:Number of jobs generated:  36  
INFO:jenkins_jobs.builder:Reconfiguring jenkins job build_Tails_ISO_bugfix-10182-improve-i2p-notification
Traceback (most recent call last):
  File "/usr/bin/jenkins-job-builder", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/jenkins_jobs/cmd.py", line 172, in main
    execute(options, config)
  File "/usr/lib/python3/dist-packages/jenkins_jobs/cmd.py", line 314, in execute
    options.names)
  File "/usr/lib/python3/dist-packages/jenkins_jobs/builder.py", line 332, in update_job
    self.jenkins.update_job(job.name, job.output())
  File "/usr/lib/python3/dist-packages/jenkins_jobs/builder.py", line 125, in update_job
    self.jenkins.reconfig_job(job_name, xml)
  File "/usr/lib/python3/dist-packages/jenkins/__init__.py", line 655, in reconfig_job
    self.jenkins_open(Request(reconfig_url, config_xml.encode('utf-8'),
AttributeError: 'bytes' object has no attribute 'encode'

The `jenkins-job-builder test` command works though. It seems there are bad
Type interactions with the python3-jenkins library, due to inconsistent usage
of the encode() or decode() methods.

-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (990, 'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-jenkins-job-builder depends on:
ii  python3-jenkins        0.4.8-0.1
ii  python3-pbr            0.8.2-1
ii  python3-pkg-resources  5.5.1-1
ii  python3-six            1.8.0-1
ii  python3-yaml           3.11-2
ii  python3.4              3.4.2-1
pn  python3:any            <none>

python3-jenkins-job-builder recommends no packages.

python3-jenkins-job-builder suggests no packages.

-- no debconf information



More information about the Openstack-devel mailing list