-
Notifications
You must be signed in to change notification settings - Fork 811
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
fix(travis): Should not fail stage if Travis properties are not returned #4112
Conversation
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-")) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
orca-igor/src/main/java/com/netflix/spinnaker/orca/igor/tasks/GetBuildPropertiesTask.java
Outdated
Show resolved
Hide resolved
…GetBuildPropertiesTask.java Co-authored-by: Daniel Reynaud <dreynaud@netflix.com>
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.