container/src/main/java/com/streamsets/datacollector/bundles/SupportBundleManager.java
public void uploadNewBundleOnError() {
    boolean enabled = configuration.get(Constants.UPLOAD_ON_ERROR, Constants.DEFAULT_UPLOAD_ON_ERROR);
    LOG.info("Upload bundle on error: {}", enabled);

    // We won't upload the bundle unless it's explicitly allowed
    if(!enabled) {
      return;
    }

    try {
      uploadNewBundle(Collections.emptyList(), BundleType.SUPPORT);
    } catch (IOException e) {
      LOG.error("Failed to upload error bundle", e);
    }
  }
public void uploadNewBundleOnError() {
    boolean enabled = configuration.get(Constants.UPLOAD_ON_ERROR, Constants.DEFAULT_UPLOAD_ON_ERROR);
    LOG.info("Upload bundle on error: {}", enabled);

    // We won't upload the bundle unless it's explicitly allowed
    if(!enabled) {
      return;
    }

    try {
      uploadNewBundle(Collections.emptyList(), BundleType.SUPPORT);
    } catch (IOException e) {
      LOG.error("Failed to upload error bundle", e);
    }
  }
Try to upload bundle as part of internal SDC error (for example failing pipeline).