Get paramter in CI step (OD-1427)
Ter opened 3 years ago

I have use this powershell script in my ci command, but cant get content, how can i get it?

$version_temp = @tag@ echo $version_temp if([String]::IsNullOrEmpty($version_temp)) { $version = "0.0.0.0.internal_only" } else { $version = $version_temp }

  • Robin Shen commented 3 years ago

    I am not a powershell expert. You may run this outside of OneDev from terminal to make sure it works as expected.

  • Ter commented 3 years ago

    Thanks for your reply, I will try that in native powershell env. BTW, I have a question about how does these paramters in CI step work , by replace string before execute command as marco does?

  • Robin Shen commented 3 years ago

    Param will be replaced by its value before running the job.

  • Ter changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Ter commented 3 years ago

    Has solved it by add quotation around param

issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1427
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover