更新时间:2023-08-25 23:04:34
结帐scm可以选择提供这样的参数,并且有一个安静的操作模式
Checkout scm has option to provide arguments like this and there is a quietoperation mode availabe
checkout([$class: 'SubversionSCM',
additionalCredentials: [],
locations: [[cancelProcessOnExternalsFail: true,
credentialsId: '234243-45654-234randomstuff',
depthOption: 'infinity',
ignoreExternalsOption: true,
local: '.',
remote: 'https://starkindustries/ironman/superGlueForThanosFingers/repo']],
**quietOperation: true,**
workspaceUpdater: [$class: 'UpdateUpdater']])
您也可以尝试
checkout scm &> /dev/null
除非git命令失败,否则这将禁止stdout和stderr
This will suppress stdout and stderr, unless the git command fails
或
如果您想使用git结帐
If you want to checkout using git
git checkout origin master --quiet
git checkout origin master --q
哪些是git中可用的选项.
Which is an available option in git.
希望它会有所帮助:)