如何将 jenkins 字符串参数传递给 shell 脚本参数值?
我必须将源路径 url 传递给 powershell 脚本参数值。
给定源路径作为 jenkins 中的字符串参数。我想知道如何将 jenkins 参数值传递给 powershell 脚本参数值。
最佳答案
作业中的每个参数都可以作为环境变量供 PowerShell 使用,因此如果您的参数命名为 SourcePath
您可以在 PowerShell 中将其写为 ${env:SourcePath}
关于powershell - Jenkins 参数与 powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56079676/