提交 02c72cf7 编写于 作者: K kohsuke

making this public due to a popular demand, such as...

making this public due to a popular demand, such as http://www.nabble.com/changing-build-number-while-hudson-is-running-tt16121427.html


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7873 71c3de6d-444a-0410-be80-ed276b4c234a
上级 99953d7e
......@@ -247,24 +247,6 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
return modules;
}
/**
* Programatically updates the next build number.
*
* <p>
* Much of Hudson assumes that the build number is unique and monotonic,
* so this method can only accept a new value that's bigger than
* {@link #getNextBuildNumber()} returns. Otherwise it'll be no-op.
*
* @since 1.199
* (before that, this method was package private.)
*/
public void updateNextBuildNumber(int next) throws IOException {
if(next>nextBuildNumber) {
this.nextBuildNumber = next;
saveNextBuildNumber();
}
}
/**
* {@link MavenModule} uses the workspace of the {@link MavenModuleSet},
* so it always needs to be built on the same slave as the parent.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册