Making HTTP request to our services through pipeline

Pavle Prica December 18, 2020

Hey team!

I hope that you and your closest are well!

 

So, to expand on the question title. Our goal is to run some tests through a pipeline, that require port forwarding through ssh.

- ssh -fN <some_user>@<some_domain> -L 8888:<some_domain>:443
- mvn -Dprofile="$profile" clean install

These are the two important steps. So to achieve the port forwarding, we run the first command, which works perfectly locally. And the mvn install will trigger those tests. Which will make a request with a URI looking like

https://<some_domain>:8888/<some_other_uri_parts>

 

The question is, is this possible? What happens it gets stuck on the first test and goes into infinity, not making the request, but not throwing an error as well. Does the VM host block us in achieving this goal?

 

Thank you in advance!

 

EDIT: We did register the public ssh key to the remote machine, so this ssh is passing well. That part shouldn't present the issue.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events