Skip to content

feat(3059): allow sourcePaths with pipeline template [2]#182

Merged
minghay merged 1 commit into
masterfrom
feat-sourcePaths-with-pipeline-template
Jul 8, 2025
Merged

feat(3059): allow sourcePaths with pipeline template [2]#182
minghay merged 1 commit into
masterfrom
feat-sourcePaths-with-pipeline-template

Conversation

@y-oksaku
Copy link
Copy Markdown
Contributor

@y-oksaku y-oksaku commented Jul 7, 2025

Context

Users want to customize sourcePaths when they use the pipeline template.

This PR requires the following PR - screwdriver-cd/data-schema#603

Objective

Merge sourcePaths settings in pipeline template, shared, and job.

Example

template: sdcd/test@1.0.0 # The "main" job in this pipeline template has "soucePaths: [foo]"

shared:
  sourcePaths: [bar]

jobs:
  main:
    soucePaths: [baz]

Then the result is soucePaths: [foo, bar, baz] .

References

PR - screwdriver-cd/data-schema#603
Issue - screwdriver-cd/screwdriver#3059

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@yakanechi
Copy link
Copy Markdown
Contributor

If soucePaths: [foo, bar, baz] , how can we set the sourcePaths for each job while ignoring the sourcePaths in the pipeline template?

@y-oksaku
Copy link
Copy Markdown
Contributor Author

y-oksaku commented Jul 7, 2025

If soucePaths: [foo, bar, baz] , how can we set the sourcePaths for each job while ignoring the sourcePaths in the pipeline template?

We cannot ignore the sourcePaths in the pipeline template.
This behavior is the same as in the job template.

I think we should consider this in a separate issue.

@minghay minghay merged commit 938ce1a into master Jul 8, 2025
2 checks passed
@minghay minghay deleted the feat-sourcePaths-with-pipeline-template branch July 8, 2025 22:56
@sd-buildbot
Copy link
Copy Markdown

🎉 This PR is included in version 12.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants