Starting a JBE build fails immediately with an error that the build is already complete
When running a JBE build the build fails and the JBE log shows something like the following:
[Jazz build engine] Invoking pre-build participant
"com.ibm.team.build.jazzscm"
com.ibm.team.build.common.TeamBuildStateException: Unable to "start"
build activity with label "Pre-build setup" because the build with id
"_NYTEMZq_EeGmY-u8tEmukQ", build definition id "BUILD", label
"BUILD LABEL" is in the
"COMPLETED" state.
What is causing this?
Accepted answer
This can be caused by a licensing error. If your user was assigned an expired contributor or other expired license, then its possible that your user has both the licenses applied. This causes the build to fail immediately with the license check, which manifests with the error seen above. Remove the expired Contributor license and it should fix the problem.