Что делает «удалить все отключенные модули» в Jenkins?

3929
Aaron Digulla

В Jenkins у меня есть возможность «удалить все отключенные модули» на главной странице некоторых проектов. Что это делает?

Редактировать: Что такое «отключенный модуль»? У Дженкинса нет модулей, есть проекты и плагины. В Maven есть модули, но нет способа «отключить» модуль в Maven. Вы можете только закомментировать или удалить элемент в POM.

7
Не могу получить больше "английского", чем это. Я считаю, что эта особенность говорит сама за себя. Lorenzo Von Matterhorn 10 лет назад 0
Что такое «отключенный модуль»? У Дженкинса нет модулей, есть проекты и плагины. В Maven есть модули, но нет способа «отключить» модуль в Maven. Вы можете только закомментировать или удалить элемент в POM. Aaron Digulla 10 лет назад 0
Где у вас есть этот вариант? Daniel Beck 10 лет назад 0
[Это] (https://wiki.jenkins-ci.org/display/JENKINS/Remove+all+disabled+modules+in+Maven+jobs), похоже, не согласен. Когда вы выбираете работу Maven, затем выбираете подпроект / модуль, можете ли вы отключить его, как обычную работу? Daniel Beck 10 лет назад 0

1 ответ на вопрос

7
Aaron Digulla

When changing the module structure of your Maven project, Jenkins has no way to know why a module suddenly appeared or vanished.

Did you add a new module? Jenkins will expect it to stay.

A module disappeared? Maybe you moved it to a profile or maybe you deleted the module or maybe you renamed it or maybe the build failed early - Jenkins can't tell for sure.

So it keeps the old module around. Say you build a project and it has the modules parent, 'a' and b. After a while, you rename b to x. When you display this build in Jenkins, you'll see four Maven modules:

parent 0.01s a 0.3s b (skipped) x 0.5s 

Jenkins keeps b around since it can't be sure when to delete it.

If you see such "skipped" entries and you're sure that they don't belong there, click on Delete All Disabled Modules to get rid of the obsolete ones after making sure that the build still contains all the modules it should.