Package: jenkins-job-builder / 0.9.0-0.2

Metadata

Package Version Patches format
jenkins-job-builder 0.9.0-0.2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
workaround programoutput.patch | (download)

doc/source/installation.rst | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 fix programoutput usage causing the following error

    doc/source/installation.rst:81:
    ERROR: Command u'jenkins-jobs --help' failed:
    [Errno 2] No such file or directory

0002 general add support for childCustomWorkspace.patch | (download)

doc/source/definition.rst | 5 5 + 0 - 0 !
jenkins_jobs/modules/general.py | 3 3 + 0 - 0 !
tests/general/fixtures/custom-workspace001.xml | 10 10 + 0 - 0 !
tests/general/fixtures/custom-workspace001.yaml | 2 2 + 0 - 0 !
tests/general/fixtures/custom-workspace002.xml | 16 16 + 0 - 0 !
tests/general/fixtures/custom-workspace002.yaml | 3 3 + 0 - 0 !
6 files changed, 39 insertions(+)

 [patch] general: add support for childcustomworkspace

On freestyle project, we can set custom workspace.
On matrix project, we can set custom workspace and child custom workspace.

It allows to specify the directory for sub-builds.

0005 builders add publish over ssh support as a build ste.patch | (download)

jenkins_jobs/modules/builders.py | 47 47 + 0 - 0 !
jenkins_jobs/modules/publishers.py | 28 17 + 11 - 0 !
setup.cfg | 1 1 + 0 - 0 !
tests/builders/fixtures/ssh.xml | 36 36 + 0 - 0 !
tests/builders/fixtures/ssh.yaml | 6 6 + 0 - 0 !
5 files changed, 107 insertions(+), 11 deletions(-)

 [patch] builders: add 'publish over ssh' support as a build step

'Publish over SSH' plugin is only supported in the publishers.
It can also be used as a build step during the build process.

Adjustments to publishers.base_publish_over() method:
 * fix the missing top delegate
 * re-order command, timeout and use-pty as in Jenkins

0006 fix delete job command and add tests.patch | (download)

jenkins_jobs/cmd.py | 2 1 + 1 - 0 !
tests/cmd/test_cmd.py | 22 22 + 0 - 0 !
2 files changed, 23 insertions(+), 1 deletion(-)

 [patch] fix delete job command and add tests

change I126751e3 introduced recursive file definition feature however it broke
the ability to delete jobs.  This changes fixes it and adds a few tests for it.

This was the error when trying to delete a job:

(py27)~/jenkins-job-builder$ jenkins-jobs --conf jenkins_jobs.ini delete myjob
INFO:root:Deleting jobs in [myjob]
Traceback (most recent call last):
  File "/jenkins-job-builder/.tox/py27/bin/jenkins-jobs", line 10, in <module>
    sys.exit(main())
  File "/jenkins-job-builder/jenkins_jobs/cmd.py", line 122, in main
    execute(options, config)
  File "/jenkins-job-builder/jenkins_jobs/cmd.py", line 207, in execute
    builder.delete_job(job, options.path)
  File "/jenkins-job-builder/jenkins_jobs/builder.py", line 611, in delete_job
    self.load_files(fn)
  File "/jenkins-job-builder/jenkins_jobs/builder.py", line 576, in load_files
    if os.path.isdir(path):
  File "/jenkins-job-builder/.tox/py27/lib/python2.7/genericpath.py", line 41,
    in isdir st = os.stat(s)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Bug: #1349634