Jenkins 如何在源代码管理块中使用Credentials参数

Jenkins 如何在源代码管理块中使用Credentials参数,jenkins,parameters,version-control,Jenkins,Parameters,Version Control,通常在使用某个参数时,您可以稍后像这样使用它:${some_param_name} 但我想使用凭据参数 生成作业页: 相同的作业,但配置外观: 我想在源代码管理中使用参数“credentialsid” 这可能吗 另外,请澄清一下,我有python脚本,它可以创建所有必要的作业。我想用正确的凭证id从python代码开始作业 以下是我的工作配置的一部分: <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig&g

通常在使用某个参数时,您可以稍后像这样使用它:
${some_param_name}

但我想使用凭据参数

生成作业页:

相同的作业,但配置外观:

我想在源代码管理中使用参数“credentialsid”

这可能吗

另外,请澄清一下,我有python脚本,它可以创建所有必要的作业。我想用正确的凭证id从python代码开始作业

以下是我的工作配置的一部分:

<userRemoteConfigs>
  <hudson.plugins.git.UserRemoteConfig>
    <url>git@bitbucket.org:estotyapps/autocompile.git</url>
    <credentialsId>${credentialsid}</credentialsId> <- this is not working
  </hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>

git@bitbucket.org:estotyapps/autocompile.git
${credentialsid}