Fix for Issue #1190 - Including Org and Space in bluemixcloudfoundry provider#1191
Open
jpwsutton wants to merge 3 commits intotravis-ci:masterfrom
Open
Fix for Issue #1190 - Including Org and Space in bluemixcloudfoundry provider#1191jpwsutton wants to merge 3 commits intotravis-ci:masterfrom
jpwsutton wants to merge 3 commits intotravis-ci:masterfrom
Conversation
Adding the -o and -s arguments to the login command to prevent the cf command from blocking the build indefinitely during login.
Organization and Space names can have spaces in them which will break the login and target commands. Rather than expecting the user to discover this and fix in their .travis.yml files, it's easy enough to just add the `"` in here.
Modifying the tests to check the commands correctly.
Contributor
|
Does this change apply to CloudFoundry as well? |
Author
|
I think it would, fortunately the CloudFoundry provider already has the Org and Space defined in the login command (https://github.com/travis-ci/dpl/blob/master/lib/dpl/providers/cloudfoundry.rb#L30) It doesn't have them in quotes, so I guess it could be an improvement to add quotes to those arguments as well, but I'd have no way to test as I don't have an account with any other CF instance. |
Contributor
|
OK. Can you point to a test deployment using this PR? After that, we can merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1190
This fix includes two main changes:
-oand-sarguments into thecf logincommand so that the organization and space is automatically targeted rather than blocking the build with the interactive org selection menu.I don't have an example build on public travis as I was facing this issue on travis enterprise, I've included the before and after logs below to show the fix though:
Before (Failing)
(at which point the build freezes waiting for user input)
After (fixed)