Skip to content

Commit fd8eb15

Browse files
authored
Merge pull request #169 from donhui/0507
fix: print log to console and set build result to FAILURE
2 parents 8c5e3af + 370a618 commit fd8eb15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/main/java/org/waveywaves/jenkins/plugins/tekton/client/build/create

src/main/java/org/waveywaves/jenkins/plugins/tekton/client/build/create/CreateRaw.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ protected String runCreate(Run<?, ?> run, FilePath workspace, EnvVars envVars) {
423423
List<TektonResourceType> kind = TektonUtils.getKindFromInputStream(new ByteArrayInputStream(data), this.getInputType());
424424
if (kind.size() > 1){
425425
LOGGER.warning("Multiple Objects in YAML not supported yet");
426+
logMessage("Multiple Objects in YAML not supported yet");
427+
run.setResult(Result.FAILURE);
426428
} else {
427429
resourceType = kind.get(0);
428430
LOGGER.info("creating kind " + resourceType.name());

0 commit comments

Comments
 (0)