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.
使用 Jenkins,我想将 ac# 程序集的版本号设置为 1.0.${SVN_REVISION}.${BUILD_NUMBER}。不幸的是,Change Assembly Version 插件没有看到 SVN 修订号。有谁知道让这个工作的方法?
我怀疑您使用了多个 SVN 模块,因为我无法重现您使用 Jenkins 1.651.1 和 Change Assembly Version 插件 1.5.1 的问题。
如果您为工作配置了多个 subversion 模块,则环境变量SVN_REVISION将替换为多个变量(SVN_REVISION_1、SVN_REVISION_2、...)。这将导致无法正确扩展的未定义变量。