{"record":{"id":"c5739874e2cdb84f","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-ex-getinva","errorCode":null,"errorMessage":"invalid value for containerizingMode: ${ex.getInvalidContainerizingMode()}","messagePattern":"invalid value for containerizingMode: (.+?)","errorType":"exception","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildTarTask.java","lineNumber":151,"sourceCode":"            jibExtension.getConfigurationName().get());\n    GlobalConfig globalConfig = GlobalConfig.readConfig();\n    Future<Optional<String>> updateCheckFuture =\n        TaskCommon.newUpdateChecker(projectProperties, globalConfig, getLogger());\n    try {\n      PluginConfigurationProcessor.createJibBuildRunnerForTarImage(\n              new GradleRawConfiguration(jibExtension),\n              ignored -> 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    } 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(\n          \"container.volumes is not an absolute Unix-style path: \" + ex.getInvalidVolume(), ex);","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/BuildTarTask.java#L133-L169","documentation":"Jib only accepts specific containerizingMode values (currently 'exploded' and 'packaged') and throws InvalidContainerizingModeException for anything else when building via jibBuildTar; the Gradle task wraps it with this message showing the invalid value.","triggerScenarios":"Running gradle jibBuildTar with jib { containerizingMode = 'explode' } or any typo'd/unsupported mode string in the jib extension configuration.","commonSituations":"Typo like 'exploded' vs 'explode'; copying a mode value from Maven docs spelled differently; older Jib plugin versions that lack the containerizingMode option entirely (setting it on a plugin that ignores/then rejects it).","solutions":["Set containerizingMode to a supported value: 'exploded' or 'packaged', e.g. jib { containerizingMode = 'exploded' }","Check the installed Jib Gradle plugin version documents the value you used (upgrade the plugin if the mode is newer than your version)","Remove the containerizingMode line to fall back to the default mode"],"exampleFix":"// before\njib { containerizingMode = 'explode' }\n// after\njib { containerizingMode = 'exploded' }","handlingStrategy":"validation","validationCode":"def mode = project.jib.containerizingMode.getOrElse('exploded')\ndef allowed = ['exploded', 'packaged']\nif (!allowed.contains(mode)) throw new GradleException(\"Invalid containerizingMode '$mode'; allowed: $allowed\")","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only use documented mode values","Check plugin release notes before copying containerizingMode from other projects","Validate the value in an init script for shared builds"],"tags":["jib","gradle","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"}