svn - Obtain Subversion Revision from Previous Jenkins Build -


I have a Jenkins job, which routinely demolishes the vote when build cakes, then I'm Jenkins job I would like to get SVN Rev # for "File X" from the previous Junkins Build.

The reason I want this amendment number so that I can implement a script is that if there is a difference between the previous Jenkins build "File X" and the copy of the work "File X" between the "File X" So you need to execute "File X". If there is no difference then it can leave the "Y" file.

These files take a long time to run :)

when If a job runs, you have access to SVN_REVISION_1 (for the first SVN URL) as the environmental variable. You must save it as an artifact

On Windows:
% SVN_REVISION_1% & gt; Myrevfile

On Linux:
$ SVN_REVISION_1 & gt; Myrevfile

At the end of the build, archive this file (you can also create other archived artifacts).

In your next build, you have one step "". In that phase, you can select the same project as the current project (variable for it), select the "latest successful build", and select the artwork you want to copy and place.

You can not change the name of this artifact with this step, but you can copy it to some temporary place, and if possible then change its name later with the script.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -