Maintaining multiple jobs for each assembly in Hudson

Can I maintain multiple workspaces for each assembly in Hudson? Suppose if I want to save the last 5 collections, is it possible to have five corresponding workspace folders? Currently, when a new build is planned, it overwrites the workspace.

+3
source share
4 answers

Currently, the idea is to reuse the workspace.

It is based on the use of SCM (SVN workspace or Git workspace or ClearCase snapshot or dynamic viewing or ...), and in none of these SCM plug-ins I see the possibility of creating a new workspace or to save (copy) the old one every job run.

One (bad) solution would be:

  • copy the task four times, as a result of which 5 tasks must be changed to indicate 5 different workspaces (based on the same SCM configuration, which means that these 5 workspaces select the same versions in each of them),
  • and run them to run one by one.
0
source

As far as I know, there is no built-in way to do this.

You have several options:

0

, Backup Plugin.

. , .

, , , , , .

0

, , .

, SCM . , , ( ).

, , - ( , **/*). zipped- . , ( , ).

Of course, you can also do this manually and run the copy as the last step of your build. You will need five directories (they can be called from 1 to 5). First delete the oldest one and rename the rest (4-> 5, 3-> 4, ..). The last step would be to copy the workspace to a directory containing the latest copy (in our example 1). This will require you to save your own archive job. Therefore, I prefer one of the above options.

0
source

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


All Articles