Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14076

while curl is not working great on pipeline

    XMLWordPrintable

Details

    Description

      Hello,

      In my build, after building and testing, I deploy my application with a curl command to rundeck.
      I want check when the application is done deploying with a command like :

      #!bash
      
      while ! curl --output /dev/null --silent --head --fail http://url/healthcheck; do echo "wait..."; sleep 2; done
      

      But the command loop infinitely, the curl doesn't seem to work.
      But it work when I run it in the docker container maven:3.3.3 on my computer.

      Do you have any idea why it doesn't work?

      Thank you very much in advance.

      Adrien

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: