Skip to content

Commit

Permalink
SECURITY-2655
Browse files Browse the repository at this point in the history
  • Loading branch information
car-roll authored and raul-arabaolaza committed Apr 5, 2022
1 parent 03309e6 commit 641f505
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javaposse.jobdsl.plugin.ContextExtensionPoint;
import javaposse.jobdsl.plugin.DslEnvironment;
import javaposse.jobdsl.plugin.DslExtensionMethod;
import jenkins.model.Jenkins;

/**
* The Job DSL Extension Point for the Promotions.
Expand Down Expand Up @@ -72,6 +73,7 @@ public void notifyItemCreated(Item item, DslEnvironment dslEnvironment, boolean
Set<String> names = (Set<String>) dslEnvironment.get("processNames");
if (names != null && names.size() > 0) {
for (String name : names) {
Jenkins.checkGoodName(name);
JobDslPromotionProcess promotionProcess = promotionProcesses.get(name);
XSTREAM.registerConverter(new JobDslPromotionProcessConverter(XSTREAM.getMapper(), XSTREAM.getReflectionProvider()));
XSTREAM.registerConverter(new ManualConditionConverter(XSTREAM.getMapper(), XSTREAM.getReflectionProvider()));
Expand Down

0 comments on commit 641f505

Please sign in to comment.