Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Accessing a site build in Pipelines

I'm using Pipelines to install a Drupal site and run Behat tests prior to deployment to its hosting environment.

The install is successful however I cannot figure out how to access the build in order to run the tests against it. Behat configuration calls for a `base_url` to test against.

I could set `base_url` to the production instance but any test involving a user account would fail since the user account is being created in the Pipeline's build and not the production instance.

I tried using as the `base_url` but it failed: cURL error 7: Failed to connect to port 80: Connection refused

I also tried adding the following to my pipeline step's script and updating behat.yml's `base_url` to but it also failed (cURL error 7: Failed to connect to port 80: Connection refused):

- echo "" >> /etc/hosts
- ..

Is it possible to access the build?

1 answer

0 votes

@bsuttis You should be able to access your webserver at Are you starting the webserver in the step or as a service?

@Justin Thomas I'm using docksal/web:2.1-apache2.4 as the 'web' service and `wget` works.

Where I'm confused is: I have a file called foo.html in my repository and attempting `wget` fails with a 404. I'm assuming the top directory of my repo works like docroot but it's not.

Is `docksal/web` started as a  service or do you use docksal/web as the base image for the step? 

@Justin Thomas it's started as a service.

I might be missing something but If you start docksal/web as a service it will not have access to your source code because the source code volume is not mounted to the service.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,744 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you