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
What’S The Easiest Way To Update The Repo Url Alone For A Task? Need - In My Ci, The Url Used Is Https But I Need The Ssh Url To Be Used. I See That We Can Pass Repo To Task.Create But Not Task.Init

What’s the easiest way to update the repo url alone for a task?

Need - in my CI, the url used is https but I need the ssh url to be used. I see that we can pass repo to Task.create but not Task.init

  
  
Posted 2 years ago
Votes Newest

Answers 12


Hi TrickySheep9 ,

The Task.init call will detect your repository as part of the automagic. You can disable it with
auto_connect_frameworks={'detect_repository': False}but I dont think this is the case.

Maybe clearml-task ? You can https://clear.ml/docs/latest/docs/guides/clearml-task/clearml_task_tutorial

  
  
Posted 2 years ago

Need - in my CI, the url used is https but I need the ssh url to be used. I see that we can pass repo to Task.create but not Task.init

Are you cloning an existing Task, or creating a new one ?

  
  
Posted 2 years ago

task.update({'script': {'version_num': 'my_new_commit_id'}})
This will update to a specific commit id, you can pass empty string '' to make the agent pull the latest from the branch

  
  
Posted 2 years ago

AgitatedDove14 either based on scenario

  
  
Posted 2 years ago

Ohh, sure then editing git config will solve it.
btw: why would you need to do that, the agent knows how to do this conversion on the fly

  
  
Posted 2 years ago

I just want to change git remote like https://gitserver.com/path/to.git -> mailto:git@gitserver.com :path/to.git

  
  
Posted 2 years ago

Only allowed to have ssh key, not username-password

  
  
Posted 2 years ago

Oh that’s not my issue at all

  
  
Posted 2 years ago

or do you mean agent can convert https url to ssh??

Yep it does that automatically if you set: force_git_ssh_protocol: true
https://github.com/allegroai/clearml-agent/blob/42606d9247afbbd510dc93eeee966ddf34bb0312/docs/clearml.conf#L25

  
  
Posted 2 years ago

or do you mean agent can convert https url to ssh??

  
  
Posted 2 years ago

Ahhhh thanks!

  
  
Posted 2 years ago

As of now solving by updating the git config locally before creating the task

  
  
Posted 2 years ago
678 Views
12 Answers
2 years ago
one year ago
Tags