Commit e5ff2c37 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ml-default-empty-query-hashes-in-api-get-job-id-script' into 'master'

Use default options for query params in get_job_id script

See merge request gitlab-org/gitlab!52158
parents 7b1419db f1d7da19
...@@ -16,8 +16,8 @@ class JobFinder ...@@ -16,8 +16,8 @@ class JobFinder
def initialize(options) def initialize(options)
@project = options.delete(:project) @project = options.delete(:project)
@pipeline_query = options.delete(:pipeline_query) @pipeline_query = options.delete(:pipeline_query) || DEFAULT_OPTIONS[:pipeline_query]
@job_query = options.delete(:job_query) @job_query = options.delete(:job_query) || DEFAULT_OPTIONS[:job_query]
@pipeline_id = options.delete(:pipeline_id) @pipeline_id = options.delete(:pipeline_id)
@job_name = options.delete(:job_name) @job_name = options.delete(:job_name)
@artifact_path = options.delete(:artifact_path) @artifact_path = options.delete(:artifact_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment