Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-10678] Enhanced help messages + added validation on th…
…e defaultValue field
  • Loading branch information
rseguy committed Aug 31, 2011
1 parent 16c6e05 commit 2415429
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
Expand Up @@ -382,6 +382,10 @@ public ISVNAuthenticationProvider createAuthenticationProvider(AbstractProject c
return getSubversionSCMDescriptor().createAuthenticationProvider(context);
}

public FormValidation doCheckDefaultValue(StaplerRequest req, @AncestorInPath AbstractProject context, @QueryParameter String value) {
return getSubversionSCMDescriptor().doCheckRemote(req, context, value);
}

public FormValidation doCheckTagsDir(StaplerRequest req, @AncestorInPath AbstractProject context, @QueryParameter String value) {
return getSubversionSCMDescriptor().doCheckRemote(req, context, value);
}
Expand Down
Expand Up @@ -21,8 +21,8 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

DisplayName=List Subversion tags
TagDescription=Select a Subversion tag
DisplayName=List Subversion tags (and more)
TagDescription=Select a Subversion entry
NoDirectoryEntriesFound=No directory entries were found.
SVNException=An SVN exception occurred while listing the directory entries.
NotValidRegex=This is not a valid regular expression
@@ -1,7 +1,8 @@
<!--
- The MIT License
-
- Copyright (c) 2010, Manufacture Francaise des Pneumatiques Michelin, Romain Seguy
- Copyright (c) 2010-2011, Manufacture Francaise des Pneumatiques Michelin,
- Romain Seguy
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -31,7 +32,14 @@
set the <strong>Repository URL</strong> field of <strong>Subversion</strong>
by concatenating the two fields of this parameter. For instance, if <strong>
Name</strong> is set to <code>SVN_TAG</code> and <strong>Repository URL
</strong> is set to <code>https://svn.jenkins-ci.org/hudson/tags</code>,
then <strong>Subversion</strong>'s <strong>Repository URL</strong> must be set
to <code>https://svn.jenkins-ci.org/hudson/tags/$SVN_TAG</code>.
</strong> is set to <code>https://svn.jenkins-ci.org/tags</code>, then
<strong>Subversion</strong>'s <strong>Repository URL</strong> must be set to
<code>https://svn.jenkins-ci.org/tags/$SVN_TAG</code>.<br/>
Notice that you can set the <strong>Repository URL</strong> field to a Subversion
repository root rather than just pointing to a <code>tags</code> dir (ie, you
can set it to <code>https://svn.jenkins-ci.org</code> rather than
<code>https://svn.jenkins-ci.org/tags</code>). In that case, if this repository
root contains the <code>trunk</code>, <code>branches</code> and <code>tags</code>
folders, then the dropdown will allow the user to pick the trunk, or a
branch, or a tag.
</div>

0 comments on commit 2415429

Please sign in to comment.