S
S
Saboteur2020-12-07 21:11:34
Jenkins
Saboteur, 2020-12-07 21:11:34

How to update custom tools on jenkins nodes?

custom tool with url to tgz archive that is used in builds.
Actually, the question arose - if I updated tgz by url, then jenkins doesn’t know anything about it, it doesn’t seem to index or hash the content by url in any way - as I understand it, on the executor node, it simply checks for the presence of a folder, and if it is not there, it downloads and unpacks to the specified folder.
But if the folder with the content is already there, it doesn't check it and doesn't update it in any way?
And how is it supposed to be regularly updated tulza?
At the moment, I can’t think of anything other than how to delete the directory on all nodes ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2020-12-07
@inoise

Build jenkins on containers and rebuild it periodically)

V
Vitaly Karasik, 2020-12-08
@vitaly_il1

As far as I understand, the custom tool does not support upgrade.
I see several options:
- delete the directory, as you mentioned
- call a separate job every time the custom tool is changed, which will update all the nodes
- have a "sample directory" somewhere and do rsync in each build.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question