docs: public static void validatePromotionSuccessful(HttpResponse response, boolean dryRun, boolean failFast, TaskListener listener) throws IOException {
          StatusLine status = response.getStatusLine();
          String content;
  
          try {
              content = ExtractorUtils.entityToString(response.getEntity());
          } catch (IOException e) {
              throw new IOException("Failed parsing promotion response.", e);
          }
  
          if (failOnResponseStatus(dryRun, failFast, listener, status, content)) {
              throw new IOException("Promotion failed due to Artifactory response.");
          }
  
          listener.getLogger().println(content);
      }