Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Enforce get method for validation checks #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions views/pyenv_wrapper/config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ f.entry(:title => "The Python version", :field => "version") do
# descendant of hudson.model.Descriptor.
# Since JRuby objects do not respond to Java refrections expectedly,
# we must specify :checkUrl explicitly as an option of textbox.
f.textbox(:default => descriptor.class.const_get(:DEFAULT_VERSION), :checkUrl => "'#{rootURL}/descriptorByName/pyenv-PyenvWrapper/checkVersion?value='+encodeURIComponent(this.value)")
f.textbox(:default => descriptor.class.const_get(:DEFAULT_VERSION), :checkMethod => "get", :checkUrl => "'#{rootURL}/descriptorByName/pyenv-PyenvWrapper/checkVersion?value='+encodeURIComponent(this.value)")
end
f.advanced do
f.entry(:title => "Ignore local version", :field => "ignore_local_version") do
Expand All @@ -17,7 +17,7 @@ f.entry(:title => "Preinstall pip list", :field => "pip_list") do
end
f.advanced do
f.entry(:title => "PYENV_ROOT", :field => "pyenv_root") do
f.textbox(:default => descriptor.class.const_get(:DEFAULT_PYENV_ROOT), :checkUrl => "'#{rootURL}/descriptorByName/pyenv-PyenvWrapper/checkPyenvRoot?value='+encodeURIComponent(this.value)")
f.textbox(:default => descriptor.class.const_get(:DEFAULT_PYENV_ROOT), :checkMethod => "get",:checkUrl => "'#{rootURL}/descriptorByName/pyenv-PyenvWrapper/checkPyenvRoot?value='+encodeURIComponent(this.value)")
end
f.entry(:title => "pyenv.git", :field => "pyenv_repository") do
f.textbox(:default => descriptor.class.const_get(:DEFAULT_PYENV_REPOSITORY))
Expand Down