i-m-c/jenkins-inheritance-plugin — pull request #12 by afitz (2014-01-27 15:57:18+00:00)
Title: Fixes for BuildTrigger,SCMTrigger and jobConfigHistory incompatibility, and actions on all job pages

1. jobConfigHistory incompatibility ( #4 ) - this is accomplished by filtering out the transient action factory, which avoids the recursive loop. We don't need the jobConfigHistory provided action when the job type is InheritanceProject, because we have the history preserved. This fix allows the coexistence of these plugins on the same jenkins instance.

2. build trigger support - build triggers were inherited, but failed to properly trigger downstream jobs. This fix 'turns on' inheritance when the project is queried when the build trigger needs to run

3. SCMTrigger fix - SCMTriggers were inherited but when running would not trigger a build. Enables inheritance when project is queried from poll() method

4. Changed the URI regex to enable inheritance for all requested pages except config-modifying actions (see line 70). This is useful for plugins that add actions. There may be a better approach here, but this has been working for us. This will probably fix #11, but I have not tested

THE FOLLOWING DISCLAIMER APPLIES TO ALL SOFTWARE CODE AND OTHER MATERIALS CONTRIBUTED IN CONNECTION WITH THIS SOFTWARE:
THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THIS SOFTWARE MAY BE REDISTRIBUTED TO OTHERS ONLY BY EFFECTIVELY USING THIS OR ANOTHER EQUIVALENT DISCLAIMER IN ADDITION TO ANY OTHER REQUIRED LICENSE TERMS.
ONLY THE SOFTWARE CODE AND OTHER MATERIALS CONTRIBUTED IN CONNECTION WITH THIS SOFTWARE, IF ANY, THAT ARE ATTACHED TO (OR OTHERWISE ACCOMPANY) THIS SUBMISSION (AND ORDINARY COURSE CONTRIBUTIONS OF FUTURES PATCHES THERETO) ARE TO BE CONSIDERED A CONTRIBUTION. NO OTHER SOFTWARE CODE OR MATERIALS ARE A CONTRIBUTION.