Screwdriver: When using template composition, omitting steps will cause a validation error

Created on 24 May 2021  路  1Comment  路  Source: screwdriver-cd/screwdriver

What happened:
When using the Template Composition, /v4/validator/template API will return 400 error if the step section is omitted.

The error message is {"statusCode":400,"error":"Bad Request","message":"TypeError: Cannot read property 'reduce' of undefined"}.

Add the steps section and it works fine.

What you expected to happen:
It should work even if we omit the steps section.

How to reproduce it:
Enter the following yaml in validator.

namespace: wahapo
name: wahapo-template
version: '1.0'
description: "my template"
maintainer: [email protected]
config:
  template: nodejs/test
  order: [test]
bug

Most helpful comment

Should be fixed now with screwdriver-cd/screwdriver v4.1.103
Screen Shot 2021-05-25 at 11 22 27 PM

>All comments

Should be fixed now with screwdriver-cd/screwdriver v4.1.103
Screen Shot 2021-05-25 at 11 22 27 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeffreytolar picture jeffreytolar  路  3Comments

nkatzman picture nkatzman  路  3Comments

yoshwata picture yoshwata  路  5Comments

tk3fftk picture tk3fftk  路  7Comments

jithine picture jithine  路  5Comments