{"record":{"id":"4a24b451bc12d131","repo":"theonedev/onedev","slug":"param-not-found-s-4a24b4","errorCode":null,"errorMessage":"Param not found: %s","messagePattern":"Param not found: (.+?)","errorType":"validation","errorClass":"ExplicitException","httpStatus":null,"severity":"error","filePath":"server-core/src/main/java/io/onedev/server/buildspec/param/instance/PassthroughValues.java","lineNumber":59,"sourceCode":"\tprivate static List<String> getParamChoices() {\n\t\tList<ParamSpec> paramSpecs = ParamSpec.list();\n\t\tif (paramSpecs != null) \n\t\t\treturn paramSpecs.stream().map(it->it.getName()).collect(Collectors.toList());\n\t\telse\n\t\t\treturn new ArrayList<>();\n\t}\n\t\n\t@Override\n\tpublic List<List<String>> getValues(Build build, ParamCombination paramCombination) {\n\t\tif (paramCombination != null) {\n\t\t\tInput param = paramCombination.getParamInputs().get(paramName);\n\t\t\tif (param != null) {\n\t\t\t\tList<List<String>> values = new ArrayList<>();\n\t\t\t\tvalues.add(param.getValues());\n\t\t\t\treturn values;\n\t\t\t} else {\n\t\t\t\tString message = String.format(\"Param not found: %s\", paramName);\n\t\t\t\tthrow new ExplicitException(message);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new ArrayList<>();\n\t\t}\n\t}\n\n\t@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof PassthroughValues)) \n\t\t\treturn false;\n\t\tif (this == other)\n\t\t\treturn true;\n\t\tPassthroughValues otherPassthroughValues = (PassthroughValues) other;\n\t\treturn new EqualsBuilder()\n\t\t\t.append(paramName, otherPassthroughValues.paramName)\n\t\t\t.isEquals();\n\t}\n","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/theonedev/onedev/blob/d44925c47c37992c828ea673a5f9620539bc3ff2/server-core/src/main/java/io/onedev/server/buildspec/param/instance/PassthroughValues.java#L41-L77","documentation":"PassthroughValues.getValues looks up paramName in the paramCombination's inputs and throws when the job was run without that parameter, i.e. the passthrough parameter references a name that was not provided at build submission.","triggerScenarios":"Thrown at server-core/src/main/java/io/onedev/server/buildspec/param/instance/PassthroughValues.java:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the build is triggered with a value for the referenced parameter.","Check the parameter name spelling against the job's parameter list.","Provide a default so the parameter is always present in the combination."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d44925c47c37992c828ea673a5f9620539bc3ff2","analyzedAt":"2026-09-06T07:18:27.995Z","contentChangedAt":"2026-09-06T07:18:27.995Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}