Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我通过 SCM 中的脚本运行工作流,如何更改默认工作区?(尝试了 groovy 脚本中的“ws”,但在这种情况下似乎不起作用 - 否则它在“工作流脚本”模式下对我有用)
checkout scm: [$class: "SubversionSCM", locations: [[ remote: srcUrl, credentiaolsId: cid, clean: true, FilePath: '.']]]
FilePath :您可以声明结帐的路径。
您可以使用该dir步骤更改目录,通常在标准工作空间内。或者,您可以使用该ws步骤在不同的位置分配一个全新的工作空间。什么特别不适合你?
dir
ws