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

[4] fix(1755): Add baseBranch to event and build config #1770

Merged
merged 4 commits into from
Oct 3, 2019

Conversation

kumada626
Copy link
Contributor

@kumada626 kumada626 commented Oct 1, 2019

Context

To use branch info in the restarted build and triggered build, I added branch info to event and build config when they are created. And use that info when creating new event.

PR build was failed because related PRs are not merged.
It may success after related PRs will be merged.

Objective

  • Add branch info to event and build config when they are created.
  • Use branch info when creating new event.

References

#1755
#1760

Related PRs:
screwdriver-cd/data-schema#357
screwdriver-cd/models#396
screwdriver-cd/scm-base#72

License

I confirm that this contribution is made under a BSD license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

jobName, username, scmContext, build, start }) {
async function createBuild(config) {
const { jobFactory, buildFactory, eventFactory, pipelineId, jobName,
username, scmContext, build, start } = config;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
username, scmContext, build, start } = config;
username, scmContext, build, start, baseBranch } = config;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 99.215% when pulling ae0e8ba on sonic-screwdriver-cd:add_branch into 985224f on screwdriver-cd:master.

@tkyi tkyi merged commit aab529a into screwdriver-cd:master Oct 3, 2019
@kumada626 kumada626 deleted the add_branch branch October 10, 2019 06:44
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.

5 participants