code: public List<GitlabTrigger> getPipelineTriggers(GitlabProject project) {
          if (!project.isJobsEnabled()) {
              // if the project has not allowed jobs, you will only get a 403 forbidden message which is
              // not helpful.
              throw new IllegalStateException("Jobs are not enabled for " + project.getNameWithNamespace());
          } else {
              return retrieve().getAll(GitlabProject.URL + "/" + project.getId() + GitlabTrigger.URL + PARAM_MAX_ITEMS_PER_PAGE, GitlabTrigger[].class);
          }
      }
docs: Returns the list of build triggers for a project.
  
  @param project the project
  @return list of build triggers
  @throws IllegalStateException if jobs are not enabled for the project