想知道 Jenkins 内部版本号 (BUILD_NUMBER) 可以获得的最大数量是多少?我试图在网上查找,但找不到此信息。
它是无限的还是有一些限制(是 INT 或 INT64 或其他类型)?
PS: 我不是在寻找如何使用以下插件将其重置回 #1 或 #N 或将其值设置为给定名称(使用 Set build name 插件)。 https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin
要找到它的限制,使用Next Build Number 插件- 当我将构建设置为“65,535”时,它仍然成功地让我 65536 并且我一直将此值增加到 999999999(9 次),它仍然有效,即下一个构建运行了 1000000000 并为其他几个运行/构建获得了有效的 Jenkins 构建#。
当我尝试将下一个内部版本号设置为:9999999999(10 次)时,Jenkins 插件发出错误消息(显示我设置的下一个内部版本号不是整数,即不在范围内):
A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
Stack trace
javax.servlet.ServletException: Build number must be an integer
at org.jvnet.hudson.plugins.nextbuildnumber.NextBuildNumberAction.doSubmit(NextBuildNumberAction.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)