Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Unanswered
Hey, Can Someone Help With Using Parameter In The Pipeline? According To The Documentation:


Hey @<1523701087100473344:profile|SuccessfulKoala55>
The relevant log from the pipeline shows:

error: pathspec 'origin/${pipeline.branch}' did not match any file(s) known to git
Repository cloning failed: Command '['git', 'checkout', 'origin/$%7Bpipeline.branch%7D', '--force']' returned non-zero exit status 1.

and I believe this is because the params cannot be injected in such a way, not sure if this is a bug or normal behaviour.
I am able to to use it like so:

pipe.add_parameter(
     name='branch',
     description='github url',
     default='main'
) 

pipe.add_function_step(
     name='step1 - get data',
     function=Get_data,
     function_return=['data'],
     function_kwargs=dict(branch='${pipeline.branch}'),
     repo='<my repo>',
) 

. but not like so:

pipe.add_parameter(
     name='branch',
     description='github url',
     default='main'
) 

pipe.add_function_step(
     name='step1 - get data',
     function=Get_data,
     function_return=['data'],
     repo_branch='${pipeline.branch}',
     repo='>my repo>',
) 
  
  
Posted 4 months ago
62 Views
0 Answers
4 months ago
4 months ago