Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused

when I run locally, it’s working fine
but on the circleci, I can start the web server running

here is my config.yml

Java Maven CircleCI 2.0 configuration file

Check Language Guide: Java - CircleCI for more details

version: 2.1
jobs:
integrationtest:
docker:
- image: circleci/openjdk:8u171-jdk-browsers
working_directory: ~/repo

steps:
  - checkout


  # Download and cache dependencies
  - restore_cache:
      keys:
        - v1-dependencies-{{ checksum "pom.xml" }}
        # fallback to using the latest cache if no exact match is found
        - v1-dependencies-

  # run tests!

  - run:  
      command: ./startwebserver.sh
      background: true

  - run:
      shell: /bin/sh
      command: |
          wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 http://localhost:8080
 
  - run:  mvn -U -DskipTests=true clean install

  
  - run:  mvn -U clean verify -Dcucumber.filter.tags=@test -Dserenity.project.name="Serenity-Rest" -Drestapi.baseurl=http://localhost:8080/webapp

  - save_cache:
      paths:
        - ~/.m2
      key: v1-dependencies-{{ checksum "pom.xml" }}

  - store_test_results:
      path: target

  - aws-s3/copy:
      arguments: '--recursive --acl public-read-write'
      from: target/site/serenity
      to: 's3://serenitybdd'


  # - slack/status:
  #     fail_only: false
  #     mentions: 'LayMui'
  #     failure_message: "see latest report: http://serenitybdd.s3-website-ap-southeast-1.amazonaws.com/index.html"
  #     webhook: $SLACK

orbs:
slack: circleci/slack@4.4.4
aws-s3: circleci/aws-s3@2.0.0

workflows:
version: 2
integrationtest:
jobs:
- integrationtest

Hello

Would it be possible to send us a build link for us to look into this further? If you are not happy with sending this publicly you can open a ticket by emailing support@circleci.com and we will be happy to look into this for you.