{"record":{"id":"3a5a7da9b6948891","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-invalidcon","errorCode":null,"errorMessage":"invalid value for containerizingMode: ${invalidContainerizingMode}","messagePattern":"invalid value for containerizingMode: (.+?)","errorType":"validation","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java","lineNumber":133,"sourceCode":"    GlobalConfig globalConfig = GlobalConfig.readConfig();\n    Future<Optional<String>> updateCheckFuture =\n        TaskCommon.newUpdateChecker(projectProperties, globalConfig, getLogger());\n    try {\n\n      PluginConfigurationProcessor.createJibBuildRunnerForDockerDaemonImage(\n              new GradleRawConfiguration(jibExtension),\n              ignored -> java.util.Optional.empty(),\n              projectProperties,\n              globalConfig,\n              new GradleHelpfulSuggestions(HELPFUL_SUGGESTIONS_PREFIX))\n          .runBuild();\n\n    } catch (InvalidAppRootException ex) {\n      throw new GradleException(\n          \"container.appRoot is not an absolute Unix-style path: \" + ex.getInvalidPathValue(), ex);\n\n    } catch (InvalidContainerizingModeException ex) {\n      throw new GradleException(\n          \"invalid value for containerizingMode: \" + ex.getInvalidContainerizingMode(), ex);\n\n    } catch (InvalidWorkingDirectoryException ex) {\n      throw new GradleException(\n          \"container.workingDirectory is not an absolute Unix-style path: \"\n              + ex.getInvalidPathValue(),\n          ex);\n\n    } catch (InvalidPlatformException ex) {\n      throw new GradleException(\n          \"from.platforms contains a platform configuration that is missing required values or has invalid values: \"\n              + ex.getMessage()\n              + \": \"\n              + ex.getInvalidPlatform(),\n          ex);\n\n    } catch (InvalidContainerVolumeException ex) {\n      throw new GradleException(","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildDockerTask.java#L115-L151","documentation":"Thrown when containerizingMode is set to an unsupported value. Jib's Gradle plugin accepts only 'exploded' or 'packaged'. Any other string fails fast at build time with the invalid value included in the message.","triggerScenarios":"Setting containerizingMode in the jib { container { ... } } block to a typo like 'exploted', 'war', or any string other than 'exploded' or 'packaged'.","commonSituations":"Typos when enabling the exploded mode (often to speed up iterative development), copying config snippets from outdated blog posts, or confusing containerizingMode with packaging-related Gradle options.","solutions":["Set containerizingMode to exactly 'exploded' or 'packaged'","Fix the typo in the jib container config block","Remove the containerizingMode line to use the default 'exploded'"],"exampleFix":"// before\njib { container { containerizingMode = 'exploted' } }\n// after\njib { container { containerizingMode = 'exploded' } }","handlingStrategy":"validation","validationCode":"def mode = jib.container.containerizingMode\nif (mode != null && !(mode in ['exploded', 'packaged'])) {\n  throw new GradleException(\"containerizingMode must be 'exploded' or 'packaged', got: $mode\")\n}","typeGuard":null,"tryCatchPattern":"try { jibBuild.run() } catch (GradleException e) { if (e.message.contains('containerizingMode')) { logger.error(e.message + \" — allowed: exploded, packaged\") }; throw e }","preventionTips":["Only use documented values: 'exploded' or 'packaged'","Copy config from official Jib docs, not blog snippets","Spell-check enum-like config values"],"tags":["gradle","jib","configuration","enum-validation"],"backgroundTag":"invalid-enum-value","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}