The environment variables %SVN_REVISION% and %SVN_URL% aren't set when I use a SVN repository running on a Visual SVN server. All other SVN interactions work fine, e.g. checkout and change detection. Running the job with another SVN server works too.
Freestyle job configuration:
Repository URL: http://SERVERNAME:81/svn/Projects/ProjectName__5_9_1_3/trunk
Local module directory: trunk
Repository depth option: infinity
Output of windows set command in the build operation (SVN_REVISION and SVN_URL missing)
...
SESSIONNAME=RDP-Tcp#0
SystemDrive=C:
SystemRoot=C:\Windows
...
System information
The Jenkins error log put me on the right track:
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 wrote the server name in capital letters by mistake.
It happened to me today that I have several SVN paths being checked out for the project and thus they all have different revision number. Jenkis ended up creating several variables: SVN_REVSION_1
, SVN_REVISION_2
, etc...
You can add at the end a Batch script and use the SET
command (Windows) so you can see in the console output all the variables available and their values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With