diff --git a/lib/pipeline.js b/lib/pipeline.js index 0adb2afe..57c2b419 100644 --- a/lib/pipeline.js +++ b/lib/pipeline.js @@ -3,7 +3,7 @@ 'use strict'; -const parser = require('screwdriver-config-parser'); +const parser = require('screwdriver-config-parser').parsePipelineYaml; const workflowParser = require('screwdriver-workflow-parser'); const boom = require('@hapi/boom'); const hoek = require('@hapi/hoek'); diff --git a/package.json b/package.json index 67671952..96299d3a 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "docker-parse-image": "^3.0.1", "js-yaml": "^4.1.0", "lodash": "^4.17.21", - "screwdriver-config-parser": "^9.0.0", + "screwdriver-config-parser": "^10.0.0", "screwdriver-data-schema": "^23.0.4", "screwdriver-logger": "^2.0.0", "screwdriver-workflow-parser": "^4.1.0" diff --git a/test/lib/pipeline.test.js b/test/lib/pipeline.test.js index 9a849ca6..1d1b0a10 100644 --- a/test/lib/pipeline.test.js +++ b/test/lib/pipeline.test.js @@ -396,7 +396,9 @@ describe('Pipeline Model', () => { rewiremock('../../lib/pipelineFactory').with({ getInstance: sinon.stub().returns(pipelineFactoryMock) }); - rewiremock('screwdriver-config-parser').with(parserMock); + rewiremock('screwdriver-config-parser').with({ + parsePipelineYaml: parserMock + }); rewiremock('../../lib/triggerFactory').with({ getInstance: sinon.stub().returns(triggerFactoryMock) });