lib/jenkins_pipeline_builder/view.rb
def exists?(view_name, parent_view = nil)
      if parent_view
        list_children(parent_view, view_name).include?(view_name)
      else
        @client.view.list(view_name).include?(view_name)
      end
    end
# Checks if the given view exists in Jenkins
#
# @param [String] view_name
#
Checks if the given view exists in Jenkins
Checks if the given view exists in Jenkins
def exists?(view_name, parent_view = nil)
      if parent_view
        list_children(parent_view, view_name).include?(view_name)
      else
        @client.view.list(view_name).include?(view_name)
      end
    end
def exists? ( view_name , parent_view = nil ) if parent_view list_children ( parent_view , view_name ) . include? ( view_name ) else @client . view . list ( view_name ) . include? ( view_name ) end end
Checks if the given view exists in Jenkins
Checks if the given view exists in Jenkins
view_name
parent_view
None