Skip to content

Commit ade35a2

Browse files
committed
fix: add temporary build value to the valid build check error message
1 parent 2d350c7 commit ade35a2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/command/AbstractGenerateCommand.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ public Integer call() throws Exception {
138138
// Filter only valid PNC builds
139139
if (!isValidBuild(build)) {
140140
throw new InvalidPncBuildStateException(
141-
"Build '{}' is not valid! Progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: progress: '{}', status: '{}'",
141+
"Build '{}' is not valid! Build cannot be temporary and progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: temporary: {}, progress: '{}', status: '{}'",
142142
parent.getBuildId(),
143+
build.getTemporaryBuild(),
143144
build.getProgress(),
144145
build.getStatus());
145146
}

cli/src/test/java/org/jboss/sbomer/cli/test/integ/feature/sbom/command/BaseGenerateCommandIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void shouldFailForBuildInProgress(QuarkusMainLauncher launcher) {
5151
assertTrue(
5252
result.getErrorOutput()
5353
.contains(
54-
"Build 'IN_PROGRESS' is not valid! Progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: progress: 'IN_PROGRESS', status: 'BUILDING'"));
54+
"Build 'IN_PROGRESS' is not valid! Build cannot be temporary and progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: progress: 'IN_PROGRESS', status: 'BUILDING'"));
5555
}
5656

5757
@Test

0 commit comments

Comments
 (0)