gpt4 book ai didi

powershell - Jenkins 参数与 powershell

转载 作者:行者123 更新时间:2023-12-01 00:13:01 25 4
gpt4 key购买 nike

如何将 jenkins 字符串参数传递给 shell 脚本参数值?

我必须将源路径 url 传递给 powershell 脚本参数值。
给定源路径作为 jenkins 中的字符串参数。我想知道如何将 jenkins 参数值传递给 powershell 脚本参数值。

最佳答案

作业中的每个参数都可以作为环境变量供 PowerShell 使用,因此如果您的参数命名为 SourcePath您可以在 PowerShell 中将其写为 ${env:SourcePath}

关于powershell - Jenkins 参数与 powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56079676/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com