Skip to content

Commit

Permalink
[JENKINS-74202] [JENKINS-74203] Use updated Jenkins core tags (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomomdahan authored Nov 13, 2024
1 parent cd2629f commit 0055ffc
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 374 deletions.
90 changes: 0 additions & 90 deletions src/main/resources/lib/local/descriptorList.jelly

This file was deleted.

88 changes: 0 additions & 88 deletions src/main/resources/lib/local/entry.jelly

This file was deleted.

83 changes: 0 additions & 83 deletions src/main/resources/lib/local/expandableTextbox.jelly

This file was deleted.

92 changes: 0 additions & 92 deletions src/main/resources/lib/local/optionalBlock.jelly

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,13 @@ import org.jenkinsci.plugins.registry.notification.opt.impl.TriggerForAllUsedInJ

def st = namespace("jelly:stapler")
def f = namespace(lib.FormTagLib)
def l = namespace("/lib/local")

def defaultOption = [:]
defaultOption[TriggerForAllUsedInJob.DescriptorImpl.instance] = new TriggerForAllUsedInJob()

DockerHubTrigger trigger = instance;

if (context.getVariableWithDefaultValue("divBasedFormLayout", false) == true) {
f.descriptorList(title: null,
field: "options",
descriptors: TriggerOptionDescriptor.all(),
instances: trigger != null ? trigger.optionsList : defaultOption)
} else {
l.descriptorList(title: null,
field: "options",
descriptors: TriggerOptionDescriptor.all(),
instances: trigger != null ? trigger.optionsList : defaultOption)
}
f.descriptorList(title: null,
field: "options",
descriptors: TriggerOptionDescriptor.all(),
instances: trigger != null ? trigger.optionsList : defaultOption)
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ package org.jenkinsci.plugins.registry.notification.opt.impl.TriggerOnSpecifiedI

def st = namespace("jelly:stapler")
def f = namespace(lib.FormTagLib)
def l = namespace("/lib/local")

if (context.getVariableWithDefaultValue("divBasedFormLayout", false) == true) {
f.entry(title:_("Repositories"), field: "repoNames") {
f.expandableTextbox(value: instance?.repoNames?.join("\n"))
}
} else {
l.entry(title:_("Repositories"), field: "repoNames") {
l.expandableTextbox(value: instance?.repoNames?.join("\n"))
}
f.entry(title:_("Repositories"), field: "repoNames") {
f.expandableTextbox(value: instance?.repoNames?.join("\n"))
}

0 comments on commit 0055ffc

Please sign in to comment.