|
|
@@ -23,7 +23,7 @@ public class PipelineFactory {
|
|
|
* @param pipelineName 流水线名称,需要用户自己指定
|
|
|
* @return
|
|
|
*/
|
|
|
- public static Pipeline init(String configJson, String namespace, String projectName, Integer pipelineId, String pipelineName) {
|
|
|
+ public static Pipeline init(String configJson, String namespace, String projectName, Integer pipelineId, String pipelineName) throws PipelineException {
|
|
|
|
|
|
PipelineConfig pipelineConfig = PipelineConfig.init(configJson);
|
|
|
|
|
|
@@ -47,7 +47,7 @@ public class PipelineFactory {
|
|
|
* (所以这一步要避免配置的覆盖,即不要用相同名字的key)
|
|
|
* @return
|
|
|
*/
|
|
|
- private static Handler initHandlerChainAndContext(PipelineConfig pipelineConfig, Map<String,String> configs){
|
|
|
+ private static Handler initHandlerChainAndContext(PipelineConfig pipelineConfig, Map<String,String> configs) throws PipelineException {
|
|
|
Handler firstHandler = null;
|
|
|
Handler currentHandler = null;
|
|
|
|