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(travis): Should not fail stage if Travis properties are not returned #4112

Merged
merged 4 commits into from
Mar 23, 2021

Conversation

jervi
Copy link
Contributor

@jervi jervi commented Mar 23, 2021

Continuation of #4089 - it should've been part of that PR really.
Orca will now always check for properties from Travis, so it shouldn't fail if none are found.

Continuation of spinnaker#4089 - it should've been part of that PR really.
Orca will now always check for properties from Travis, so it shouldn't fail if none are found.
@@ -62,6 +62,9 @@
stageDefinition.getMaster(),
stageDefinition.getJob());
if (properties.size() == 0) {
if (stageDefinition.getMaster().startsWith("travis-")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

any chance for stageDefinition.getMaster() to be null here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it is the name of the buildmaster. It needs to be defined and is fetched from igor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it was null an exception would have been thrown a few lines up as well.

…GetBuildPropertiesTask.java

Co-authored-by: Daniel Reynaud <dreynaud@netflix.com>
@dreynaud dreynaud added the ready to merge Approved and ready for merge label Mar 23, 2021
@mergify mergify bot merged commit 7fabdf8 into spinnaker:master Mar 23, 2021
@mergify mergify bot added the auto merged Merged automatically by a bot label Mar 23, 2021
@jervi jervi deleted the always_read_properties_from_travis branch March 23, 2021 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.26
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants