title: Gitlab CI/CD how to catch curl response in pipeline
body: <p>I have a <code>pipeline</code> which starts some <code>maven/java</code> app, now I want to add a <code>test</code> stage , where I check if the app starts successfully , for example: when the build stage finishes, I check with <code>curl</code></p>
  <p><code>127.0.0.1:8080</code> if response <code>200</code> ok , else failed.</p>
  <p>How can I create a <code>Gitlab pipline</code> for this use case?</p>
  <pre><code>stages:
    - build
    - deploy
    - test
  
  build:
    stage: build
    script:
      - echo Build Stage 1
    tags:
      - java-run
  
  deploy:
    stage: deploy
    tags:
      - java-run
    script:
      - &quot;some script&quot;
  
  test:
    stage: test
    tags:
      - java-run
    script:
  </code></pre>