Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Jenkins, I have the option to "delete all disabled modules" on main page of some projects. What does that do?

Edit: What is a "disabled module"? Jenkins doesn't have modules, it has projects and plugins. Maven has modules but what there is no way to "disable" a module in Maven. You can only comment it out or delete the element in the POM.

share|improve this question
    
Can't get more "English" than that. I believe the feature speaks for itself. –  Lorenzo Von Matterhorn Apr 29 '13 at 15:19
    
What is a "disabled module"? Jenkins doesn't have modules, it has projects and plugins. Maven has modules but what there is no way to "disable" a module in Maven. You can only comment it out or delete the element in the POM. –  Aaron Digulla Apr 29 '13 at 15:46
    
Where do you have this option? –  Daniel Beck Apr 30 '13 at 8:00
    
This seems to disagree. When you select the Maven job, then select the sub-project/module, can you disable it, like a regular job? –  Daniel Beck Apr 30 '13 at 8:08

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.