-
Notifications
You must be signed in to change notification settings - Fork 345
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
Integration cannot be run from github with different branch #3475
Comments
@mmajerni Running on a GH branch should rather be like this:
See the e2e tests for more details: Is there anywhere that tells |
OK, I tried that but doesn't work as well:
Definitely there's something wrong with it. |
Looks like that test is silently failing, that's why we haven't noticed it. Related #3465 |
Hi @tadayosi, I updated that test: https://github.com/apache/camel-k/pull/3438/files#diff-d618db0cd5368f9f7428e20a95fd07e6b62a1abd375a331ca74914dc10103821L43 Docs describe that if you want to specify a branch you need to specify the branch as a query parameter: Also you can see in the error code which you pasted that if you add branch to the URL ( There is definitely a problem. One of those commands should work: |
Fix apache#3475 (cherry picked from commit apache/camel-k@39708f8c6)
Running integration from GitHub should work as:
kamel run github:$user/$repo/$path?branch=$branch
Command:
kamel run github:apache/camel-k/e2e/common/files/Java.java?branch=release-1.8.x
is not working and it returns an error:
Error: cannot read sources: cannot process file github:apache/camel-k/e2e/common/files/Java.java?branch=release-1.8.x: unsupported file type github:apache/camel-k/e2e/common/files/Java.java?branch=release-1.8.x
The text was updated successfully, but these errors were encountered: