lib/jenkins_pipeline_builder/view.rb
# Initializes a new View object.
#
# @param generator [Generator] the client object
#
# @return [View] the view object
#
Initializes a new View object.
Initializes a new View object .
def post_params(params)
      payload = post_payload params
      payload['filterQueue'] = 'on' if params[:filter_queue]
      payload['filterExecutors'] = 'on' if params[:filter_executors]
      if params[:regex]
        payload['useincluderegex'] = 'on'
        payload['includeRegex'] = params[:regex]
      end
      payload
    end
def post_params ( params ) payload = post_payload params payload [ 'filterQueue' ] = 'on' if params [ :filter_queue ] payload [ 'filterExecutors' ] = 'on' if params [ :filter_executors ] if params [ :regex ] payload [ 'useincluderegex' ] = 'on' payload [ 'includeRegex' ] = params [ :regex ] end payload end
Initializes a new View object.
Initializes a new View object .
the view object
the view object
View
params
generator
the client object
the client object