#1427  Get paramter in CI step
Closed
Ter opened 10 months 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 10 months 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 10 months 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 10 months ago

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

Ter changed state to 'Closed' 10 months ago
Previous Value Current Value
Open
Closed
Ter commented 10 months ago

Has solved it by add quotation around param

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1427
Please wait...
Page is in error, reload to recover