screwdriver-api 7.0.61 → 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/Dockerfile CHANGED
@@ -7,6 +7,10 @@ ARG VERSION=latest
7
7
  RUN mkdir -p /usr/src/app
8
8
  WORKDIR /usr/src/app
9
9
 
10
+ # update npm
11
+ RUN npm install -g npm
12
+ RUN npm cache clean -f
13
+
10
14
  # Install Screwdriver API
11
15
  RUN npm install --fetch-timeout=1200000 screwdriver-api@$VERSION
12
16
  WORKDIR /usr/src/app/node_modules/screwdriver-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.61",
3
+ "version": "7.0.63",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,13 +33,13 @@ module.exports = () => ({
33
33
 
34
34
  const [pipeline, template, templateTag] = await Promise.all([
35
35
  pipelineFactory.get(pipelineId),
36
- pipelineTemplateVersionFactory.get({ name, namespace, version }, pipelineTemplateFactory),
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