• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      On creating a new job while being in a view, the job will be added to this view. This doesn't neccesarily make sense, especially when using regular expressions to filter the jobs.

      There should be a flag "don't add job to view on creation" in the view or a similar mechanism to prevent this.

          [JENKINS-19142] Don't add jobs to a view

          Steffen Breitbach created issue -

          Duplicate of JENKINS-19142

          See workaround mentioned there - add a filter (i.e. regex filter) to filter out all jobs as your first filter, then add jobs back in with filters.

          Jacob Robertson added a comment - Duplicate of JENKINS-19142 See workaround mentioned there - add a filter (i.e. regex filter) to filter out all jobs as your first filter, then add jobs back in with filters.
          Jacob Robertson made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Hi Jacob,

          you marked this issue as Duplicate of itself.

          Apart from that, I don't think I get your explanation. How does the usage of filters prevent Jenkins from adding Jobs to that view?

          Steffen Breitbach added a comment - Hi Jacob, you marked this issue as Duplicate of itself. Apart from that, I don't think I get your explanation. How does the usage of filters prevent Jenkins from adding Jobs to that view?
          Steffen Breitbach made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          Oops. Should have been Duplicate of JENKINS-14799.

          Adding filters doesn't prevent it from adding jobs to that view, but it does prevent it from displaying the jobs that are added. So you'll see a bunch of jobs in the massive list of checkboxes, but then the first filter will filter all those jobs out, and then subsequent filters will add whatever exact jobs you actually want back in. It's just a workaround, and I think JENKINS-14799 speaks to your issue.

          Jacob Robertson added a comment - Oops. Should have been Duplicate of JENKINS-14799 . Adding filters doesn't prevent it from adding jobs to that view, but it does prevent it from displaying the jobs that are added. So you'll see a bunch of jobs in the massive list of checkboxes, but then the first filter will filter all those jobs out, and then subsequent filters will add whatever exact jobs you actually want back in. It's just a workaround, and I think JENKINS-14799 speaks to your issue.
          Jacob Robertson made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Reopened [ 4 ] New: Closed [ 6 ]
          Steffen Breitbach made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          Steffen Breitbach added a comment - - edited

          Sorry, I guess I picked the wrong component. I wasn't aware that there is a plug in "View Job Filters". Looks interesting though, might give it a try.

          However, the issue persists in Jenkins core, so I've reopened the issue.

          Steffen Breitbach added a comment - - edited Sorry, I guess I picked the wrong component. I wasn't aware that there is a plug in "View Job Filters". Looks interesting though, might give it a try. However, the issue persists in Jenkins core, so I've reopened the issue.
          Steffen Breitbach made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: view-job-filters [ 15736 ]
          Assignee Original: Jacob Robertson [ jacob_robertson ]

            vlatombe Vincent Latombe
            sbreitbach Steffen Breitbach
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: