通过gitlab4j-api 触发流水线异常
try {
pipelineApi.triggerPipeline(gitProjectId, trigger, branch, variables);
} catch (GitLabApiException e) {
logger.error("触发流水线失败!{}", e.getValidationErrors(), e);
throw new CustomException("触发流水线失败!");
} finally {
pipelineApi.deletePipelineTrigger(gitProjectId, trigger.getId());
}
https://github.com/gitlab4j/gitlab4j-api/issues/407
结果发现项目没有对应的分支