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
Answered
Hi All, I Have Python File Build_Pipeline, That Contain Pipelinecontroller With One Step Only. When I Try To Run The File I Get 'Build_Pipline.Py': [Errno 2] No Such File Or Directory' On The Webui. What I Do Wrong? Thanks!

Hi all,
I have python file build_pipeline, that contain PipelineController with one step only.
When I try to run the file I get 'build_pipline.py': [Errno 2] No such file or directory' on the webUI.

What I do wrong?

Thanks!

  
  
Posted 2 years ago
Votes Newest

Answers 17


pipe = PipelineController( name='grab2train_tf', project='main pipeline', version='0.0.1', abort_on_failure=True, # any failed step will cause the pipeline to immediately abort, stop all running steps, and mark the pipeline as failed. )
I'm missing something? CostlyOstrich36

  
  
Posted 2 years ago

Please try like Kirill mentioned. Also please note that there is no file target in the snippet you provided 🙂

  
  
Posted 2 years ago

SparklingElephant70 , can you please provide the full log of the run? You can download it through the webapp 🙂

  
  
Posted 2 years ago

SparklingElephant70 Try specifying full path to the script (relative to working dir)

  
  
Posted 2 years ago

SparklingElephant70 , let me make sure I understand, the idea is to make sure the pipeline will launch a specific commit/branch, and that you can control it? Also are you using the pipeline add_step function or are you decorating a function with PipelineDecorator ?

  
  
Posted 2 years ago

MelancholyElk85 So I need to change the paths each time?

  
  
Posted 2 years ago

AgitatedDove14 Yes,
I use add step

  
  
Posted 2 years ago

SparklingElephant70 then use task_overrides argument, like this
task_overrides={'script.branch': 'main', 'script.version_num': '', 'script.diff': '', 'project': Task.get_project_id(project_name=cfg[name]['base_project']), 'name': 'task-name', 'container.image': 'registry.gitlab.com/image:tag'}there must be some schema to change script name as well

  
  
Posted 2 years ago

SparklingElephant70 in WebUI Execution/SCRIPT PATH

  
  
Posted 2 years ago

CostlyOstrich36

  
  
Posted 2 years ago

MelancholyElk85 This is the only way?

  
  
Posted 2 years ago

Also from python client

  
  
Posted 2 years ago

MelancholyElk85 How do I change the SCRIPT PATH/SCRIPT PATH

  
  
Posted 2 years ago

How are you trying to 'target' the file in the code?

  
  
Posted 2 years ago

Hi CostlyOstrich36 ,

  
  
Posted 2 years ago

MelancholyElk85 Thanks,
I will try!

  
  
Posted 2 years ago

SparklingElephant70 , Hi
Can you please provide a screenshot of the error?

  
  
Posted 2 years ago