EnvVar SVN_REVISION and SVN_URL not set

The environment variables% SVN_REVISION% and% SVN_URL% are not set when I use the SVN repository running on a Visual SVN server. All other interactions with SVN work fine, for example. checking and detecting changes. Another SVN server is running.

Freestyle Job Configuration:

Repository URL: http://SERVERNAME:81/svn/Projects/ProjectName__5_9_1_3/trunk Local module directory: trunk Repository depth option: infinity 

Window set command output in build operation (missing SVN_REVISION and SVN_URL)

 ... SESSIONNAME=RDP-Tcp#0 SystemDrive=C: SystemRoot=C:\Windows ... 

System Information

  • Jenkins: v1.531
  • Subversion Plugin: v1.51
  • JAVA Runtime: v1.6.0_35
  • VisualSVN Server: v2.7
+6
source share
2 answers

The Jenkins error log set me on the right path:

 WARNUNG: no revision found corresponding to http://SERVERNAME/svn/Project/trunk; known: [http://servername/svn/Project/trunk] 

It seems that Jenkins / subversion / SVNKit is case sensitive, and in my case I mistakenly wrote the server name in capital letters.

+7
source

Today it happened to me that I have several SVN paths that are checked for the project, and therefore all of them have a different version number. Jenkis created several variables: SVN_REVSION_1 , SVN_REVISION_2 , etc.

You can add a batch script command at the end and use the SET command (Windows) so that you can see in the console the output of all available variables and their values.

0
source

Source: https://habr.com/ru/post/954781/