Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(2646): Do not include parameters from external builds during remote join #432

Merged
merged 3 commits into from
Feb 22, 2022

Conversation

sagar1312
Copy link
Member

Context

Parameters from external builds are being included during remote join.

Objective

Parameters must be available only to pipeline and its jobs. Parameters from external builds (jobs of another pipeline) should not be made available to the jobs during remote join.

References

screwdriver-cd/screwdriver#2646

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.

@sagar1312 sagar1312 force-pushed the sagar1312_fix2646_excludeExternalParameters branch from 651039e to 492be64 Compare February 17, 2022 17:48
adong
adong previously approved these changes Feb 17, 2022
@sagar1312 sagar1312 force-pushed the sagar1312_fix2646_excludeExternalParameters branch from 32a4bfd to 1991f07 Compare February 18, 2022 17:51
@sagar1312 sagar1312 force-pushed the sagar1312_fix2646_excludeExternalParameters branch from 1991f07 to 2043753 Compare February 18, 2022 17:52
adong
adong previously approved these changes Feb 18, 2022
launch.go Outdated

// Always exclude parameters from external meta
delete(externalParentBuildMeta, "parameters")

resultMeta = deepMergeJSON(resultMeta, parentBuild.Meta)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what you meant to do?

Suggested change
resultMeta = deepMergeJSON(resultMeta, parentBuild.Meta)
resultMeta = deepMergeJSON(resultMeta, externalParentBuildMeta)

Copy link
Member

@tkyi tkyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think the change will work atm

@sagar1312 sagar1312 merged commit f33e27e into master Feb 22, 2022
@sagar1312 sagar1312 deleted the sagar1312_fix2646_excludeExternalParameters branch February 22, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants