jenkins构建报错
问题描述
和往常一样在jenkins中进行项目构建,jenkins构建报如下错误
FATAL: java.lang.IllegalStateException: JENKINS-27530: cannot create a build with number 9 since that (or higher) is already in use among [12]
意思就是无法创建编号为9的构建,因为该编号(或更高)已在[12]中使用。
这个构建编号已经被使用了。
完整报错信息
First time build. Skipping changelog. Parsing POMs Modules changed, recalculating dependency graph FATAL: java.lang.IllegalStateException: JENKINS-27530: cannot create a build with number 9 since that (or higher) is already in use among [12] java.lang.IllegalStateException: JENKINS-27530: cannot create a build with number 9 since that (or higher) is already in use among [12] at jenkins.model.lazy.AbstractLazyLoadRunMap.proposeNewNumber(AbstractLazyLoadRunMap.java:395) at hudson.model.RunMap.put(RunMap.java:192) at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:182) Caused: java.lang.Error at jenkins.model.lazy.LazyBuildMixIn.newBuild(LazyBuildMixIn.java:190) at hudson.model.AbstractProject.newBuild(AbstractProject.java:965) at hudson.maven.MavenModule.newBuild(MavenModule.java:390) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:712) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514) at hudson.model.Run.execute(Run.java:1907) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) SSH: Current build result is [FAILURE], not going to run. Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Finished: FAILURE
解决办法
在jenkins的构建历史界面删除构建,具体步骤
删除构建之后,再次构建就成功构建了。