screwdriver-config-parser
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -8,2 +8,3 @@ 'use strict'; | ||
const STAGE_PREFIX = 'stage@'; | ||
const STAGE_SETUP_TEARDOWN_PATTERN = /stage@[\w-]+:(?:setup|teardown)$/; | ||
const DEFAULT_JOB = { | ||
@@ -570,3 +571,7 @@ image: 'node:18', | ||
Object.keys(jobs).forEach(jobName => { | ||
if (jobs[jobName].stage && jobs[jobName].stage.name === stageName) { | ||
if ( | ||
jobs[jobName].stage && | ||
jobs[jobName].stage.name === stageName && | ||
!STAGE_SETUP_TEARDOWN_PATTERN.test(jobName) | ||
) { | ||
if (Array.isArray(jobs[jobName].requires)) { | ||
@@ -663,2 +668,3 @@ stageJobsRequires = stageJobsRequires.concat(jobs[jobName].requires); | ||
}; | ||
delete stages[stageName].teardown; | ||
@@ -665,0 +671,0 @@ delete stages[stageName].setup; |
{ | ||
"name": "screwdriver-config-parser", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"description": "Node module for parsing screwdriver.yaml configurations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68929
1525