Your message dated Thu, 17 Sep 2015 16:20:16 +0200
with message-id <20150917142016.GD27250@localhost>
and subject line Re: jenkins-job-builder: AttributeError when updating jobs.
has caused the Debian Bug report #799277,
regarding jenkins-job-builder: AttributeError when updating jobs.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
799277: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799277
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Hi,

On Thu, Sep 17, 2015 at 03:12:16PM +0200, bertagaz wrote:
> 
> 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.
>
> [...]
>
> ii  python3-six            1.8.0-1

After some researched, this problem seems to come from this dependency.
Pulling python3-six from unstable makes the update command works again.
This version dependency wasn't obvious from the package description.

Sorry for the noise then.

bert.

--- End Message ---

Reply via email to