Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Support for Jobs created using the Folders plugin #34

Open
weeniearms opened this issue Aug 3, 2016 · 1 comment
Open

Support for Jobs created using the Folders plugin #34

weeniearms opened this issue Aug 3, 2016 · 1 comment

Comments

@weeniearms
Copy link

weeniearms commented Aug 3, 2016

Currently there are two issues when using the auto job creation feature in combination with jobs that are grouped into folders using the Folders plugin:

  1. Newly created jobs do not have the same parent as the master job
  2. Duplicate jobs are created if the job is grouped in a folder (i.e. not under root). One of them is correct, while the other seems incomplete (description and scm not updated).

No.1 can be solved by simply moving the job under the appropriate parent. This can be accomplished by adding the following line to the with method in the CreateProjectForBranch class right after the project i saved:

branch_project = Java.hudson.model.Items.move(branch_project, copy_from.jenkins_project.parent)

Not sure how to solve No.2, as it might be an issue with the Jenkins API responsible for copying the job. I'll try to come up with a setup that will allow to easily reproduce this issue.

@HadesArchitect
Copy link

Hey guys, any updates there? Have you found a solution? We still experience it on Jenkins v2.108, Plugin v1.4.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants