The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
$class: 'SubversionSCM'
locations
remote : String
credentialsId : String
local : String
.
) may be used to check out the project directly into the workspace rather than into a subdirectory.
depthOption : String
ignoreExternalsOption : boolean
svn:externals
to gain read access to the entire Subversion repository. This can happen if you follow the normal practice of giving Jenkins credentials with read access to the entire Subversion repository. You will also need to provide the credentials to use when checking/polling out the svn:externals using the Additional Credentials option.
cancelProcessOnExternalsFail : boolean
workspaceUpdater
$class: 'CheckoutUpdater'
$class: 'NoopUpdater'
$class: 'UpdateUpdater'
$class: 'UpdateWithCleanUpdater'
$class: 'UpdateWithRevertUpdater'
browser
$class: 'Assembla'
spaceName : String
$class: 'BacklogRepositoryBrowser'
url : String
When no value is set, project of "Backlog URL" set above is used.
svnPhabricator
url : String
repo : String
$class: 'PolarionRepositoryBrowser'
url : String
location : String
$class: 'RedmineRepositoryBrowser'
repositoryId : String
$class: 'SVNWeb'
url : String
$class: 'ScmManagerSvnRepositoryBrowser'
repoUrl : String
$class: 'TeamForge'
connectionFactory
url : String
This should be the URL of your Digital.ai TeamForge site. It should be of the form 'https://forge.collab.net'.
username : String
The user who will upload the files.
password : String
The password for the user specified above. If incorrectly given, the login to the Digital.ai TeamForge server will fail.
project : String
repo : String
$class: 'TracRepositoryBrowser'
$class: 'ViewVCRepositoryBrowser'
url : String
location : String
$class: 'VisualSVN'
url : String
excludedRegions : String
/trunk/myapp/src/main/web/.*\.html /trunk/myapp/src/main/web/.*\.jpeg /trunk/myapp/src/main/web/.*\.gifThe example above illustrates that if only html/jpeg/gif files have been committed to the SCM a build will not occur. More information on regular expressions can be found here.
excludedUsers : String
auto_build_userThe example above illustrates that if only revisions by "auto_build_user" have been committed to the SCM a build will not occur.
excludedRevprop : String
excludedCommitMessages : String
includedRegions : String
/trunk/myapp/c/library1/.* /trunk/myapp/c/library2/.*If /trunk/myapp is checked out, the build will only occur when there are changes to either the c/library1 and c/library2 subtrees. If there are also excluded regions specified, then a file is not ignored when it is in the included list and not in the excluded list. More information on regular expressions can be found here.
ignoreDirPropChanges : boolean
filterChangelog : boolean
additionalCredentials
If there are additional credentials required in order to obtain a complete checkout of the source, they can be provided here.
The realm is how the repository self-identifies to a client. It usually has the following format:
<proto://host:port> Realm Name
proto
is the protocol, e.g. http
or svn
.host
is the host how it's accessed by Jenkins, e.g. as IP address 192.168.1.100
, host name svnserver
, or host name and domain svn.example.org
.port
is the port, even if not explicitly specified. By default, this is 80
for HTTP, 443
for HTTPS, 3690 for the svn
protocol.Realm Name
is how the repository self-identifies. Common options include VisualSVN Server
, Subversion Authentication
or the UUID of the repository.To find out the realm, you could do any of the following:
Realm Name
(see above) in the authentication dialog.svn
program.
svn info https://svnserver/repo
and it will tell you the realm when asking you to enter a password, e.g.: Authentication realm: <svn://svnserver:3690> VisualSVN Server.~/.subversion/auth/svn/simple
; it will be two lines below the line svn:realmstring
.svn+ssh
protocol, the realm has the format username@svn+ssh://host:port
– note that the username is before the svn+ssh://
(unlike the URL used for normal SVN operations), and that there are no angle brackets and no realm name. For this protocol the default port is 22.Make sure to enter the realm exactly as shown, starting with a <
(except for repositories accessed via svn+ssh
– see above).
realm : String
<scheme://hostname(:port)> name
, while for servers accessed via svn+ssh
it is of the format (username@)svn+ssh://hostname(:port)
.
credentialsId : String
quietOperation : boolean
Mimics subversion command line --quiet
parameter for check out / update operations to help keep the output shorter. Prints nothing, or only summary information.
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.