小编e82*_*ric的帖子

Jenkins Git插件存储库URL变量

是否可以在jenkins git插件的存储库URL中使用变量?

https://${GIT_USER}@github.com/e82eric/Prompts.git
Run Code Online (Sandbox Code Playgroud)

当我尝试它看起来像是${GIT_USER}通过而不是替换.

git jenkins

10
推荐指数
1
解决办法
4791
查看次数

Windows 7 上的 powershell Get-Counter -ComputerName 参数

当我尝试在以管理员身份运行的 Windows 7 上使用 Get-Counter cmdlet 时,出现以下错误。

Get-Counter -computername "$env:ComputerName" '\Memory\Available MBytes'

Get-Counter : Unable to connect to the specified computer or the computer is of
fline.
At line:1 char:12
+ Get-Counter <<<<  -computername "$env:ComputerName" '\Memory\Available MBytes
'
    + CategoryInfo          : InvalidResult: (:) [Get-Counter], Exception
    + FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.Ge
   tCounterCommand
Run Code Online (Sandbox Code Playgroud)

当我在 XP 64 和 Windows 7 上按原样尝试它时,同样的命令可以工作,当我排除 -computername 参数时。

关于如何使用 computername 参数使其在 Windows 7 上工作的任何想法?

谢谢

powershell powershell-2.0

2
推荐指数
1
解决办法
6361
查看次数

标签 统计

git ×1

jenkins ×1

powershell ×1

powershell-2.0 ×1