screwdriver-api 7.0.62 → 7.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,13 +33,13 @@ module.exports = () => ({
|
|
|
33
33
|
|
|
34
34
|
const [pipeline, template, templateTag] = await Promise.all([
|
|
35
35
|
pipelineFactory.get(pipelineId),
|
|
36
|
-
pipelineTemplateVersionFactory.
|
|
36
|
+
pipelineTemplateVersionFactory.getWithMetadata({ name, namespace, version }, pipelineTemplateFactory),
|
|
37
37
|
pipelineTemplateTagFactory.get({ name, namespace, tag })
|
|
38
38
|
]);
|
|
39
39
|
|
|
40
40
|
// If template doesn't exist, throw error
|
|
41
41
|
if (!template) {
|
|
42
|
-
throw boom.notFound(`PipelineTemplate ${name}@${version} not found`);
|
|
42
|
+
throw boom.notFound(`PipelineTemplate ${namespace / name}@${version} not found`);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// check if build has permission to publish
|