Skip to content

Commit

Permalink
[JENKINS-22888] Use adjuncts, and prepare for compatibility with summ…
Browse files Browse the repository at this point in the history
…ary_report-plugin
  • Loading branch information
kinow committed Sep 16, 2015
1 parent 8128c33 commit d7da1ca
Show file tree
Hide file tree
Showing 45 changed files with 38 additions and 155 deletions.
155 changes: 15 additions & 140 deletions pom.xml
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.424</version><!-- which version of Jenkins is this plugin built against? -->
<version>1.580.3</version><!-- which version of Jenkins is this plugin built against? -->
</parent>

<groupId>com.tupilabs.image_gallery</groupId>
Expand Down Expand Up @@ -38,6 +38,12 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<scm>
<url>http://github.com/jenkinsci/image-gallery-plugin</url>
<connection>scm:git:git://github.com/jenkinsci/image-gallery-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/image-gallery-plugin.git</developerConnection>
</scm>

<licenses>
<license>
Expand All @@ -62,144 +68,13 @@
</pluginRepository>
</pluginRepositories>

<build>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.cloudbees</groupId>
<artifactId>
maven-license-plugin
</artifactId>
<versionRange>
[1.6,)
</versionRange>
<goals>
<goal>process</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-enforcer-plugin
</artifactId>
<versionRange>
[1.0,)
</versionRange>
<goals>
<goal>display-info</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.gmaven
</groupId>
<artifactId>
gmaven-plugin
</artifactId>
<versionRange>
[1.3,)
</versionRange>
<goals>
<goal>generateTestStubs</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.jenkins-ci.tools
</groupId>
<artifactId>
maven-hpi-plugin
</artifactId>
<versionRange>
[1.74,)
</versionRange>
<goals>
<goal>insert-test</goal>
<goal>
resolve-test-dependencies
</goal>
<goal>test-hpl</goal>
<goal>validate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.jvnet.localizer
</groupId>
<artifactId>
maven-localizer-plugin
</artifactId>
<versionRange>
[1.12,)
</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.kohsuke</groupId>
<artifactId>
access-modifier-checker
</artifactId>
<versionRange>
[1.0,)
</versionRange>
<goals>
<goal>enforce</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<!-- JQuery is included only once -->
<dependency>
<groupId>org.kohsuke.stapler</groupId>
<artifactId>stapler-adjunct-jquery</artifactId>
<version>1.8.3-0</version>
</dependency>
</dependencies>

<scm>
<url>http://github.com/jenkinsci/image-gallery-plugin</url>
<connection>scm:git:git://github.com/jenkinsci/image-gallery-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/image-gallery-plugin.git</developerConnection>
</scm>
</project>
Expand Up @@ -28,7 +28,6 @@

import org.jenkinsci.plugins.imagegallery.AbstractArchivedImagesGallery;
import org.jenkinsci.plugins.imagegallery.ImageGalleryDescriptor;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
Expand Down Expand Up @@ -97,7 +96,6 @@ public ComparativeArchivedImagesGallery(String title, String baseRootFolder, Int
* @param imageInnerWidth
* @param markBuildAsUnstableIfNoArchivesFound
*/
@DataBoundConstructor
public ComparativeArchivedImagesGallery(String title, String baseRootFolder, String imageWidth, String imageInnerWidth,
boolean markBuildAsUnstableIfNoArchivesFound) {
super(title, imageWidth, markBuildAsUnstableIfNoArchivesFound);
Expand Down
@@ -1,7 +1,7 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:local="local">
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery.colorbox.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery.jstree.js"></script>
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.colorbox"/>
<st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.jstree"/>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
Expand Down Expand Up @@ -29,8 +29,6 @@

});
</script>
<link href="${rootURL}/plugin/image-gallery/css/colorbox.css" type="text/css" rel="stylesheet" />
<link href="${rootURL}/plugin/image-gallery/css/plugin.css" type="text/css" rel="stylesheet" />
<h3>${from.title}</h3>
<div class="comparative-gallery-tree">
<ul>
Expand Down
@@ -1,6 +1,6 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:local="local">
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery.colorbox.js"></script>
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.colorbox"/>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
Expand All @@ -13,8 +13,6 @@
});
});
</script>
<link href="${rootURL}/plugin/image-gallery/css/colorbox.css" type="text/css" rel="stylesheet" />
<link href="${rootURL}/plugin/image-gallery/css/plugin.css" type="text/css" rel="stylesheet" />
<h2>${from.title}</h2>
<j:forEach items="${from.images}" var="i" varStatus="st">
<a class='gallery' href="artifact/${i}" title="${i}">
Expand Down
@@ -1,6 +1,6 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:local="local">
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/image-gallery/js/jquery.colorbox.js"></script>
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.colorbox"/>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
Expand All @@ -21,8 +21,6 @@
});
});
</script>
<link href="${rootURL}/plugin/image-gallery/css/colorbox.css" type="text/css" rel="stylesheet" />
<link href="${rootURL}/plugin/image-gallery/css/plugin.css" type="text/css" rel="stylesheet" />
<h2>${from.title}</h2>
<j:forEach items="${from.images}" var="i" varStatus="st">
<div><h4>Compared images : ${i.key}</h4>
Expand Down
@@ -0,0 +1,8 @@
<!--
Use it like <st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.colorbox"/>
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<script src="${it.packageUrl}/colorbox/js/jquery.colorbox.js" type="text/javascript"></script>
<link href="${it.packageUrl}/colorbox/css/colorbox.css" type="text/css" rel="stylesheet" />
</j:jelly>
Empty file.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
<!--
Use it like <st:adjunct includes="org.jenkinsci.plugins.imagegallery.stapler.jstree"/>
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:adjunct includes="org.kohsuke.stapler.jquery"/>
<script src="${it.packageUrl}/jstree/js/jquery.jstree.js" type="text/javascript"></script>
<link href="${it.packageUrl}/jstree/css/plugin.css" type="text/css" rel="stylesheet" />
</j:jelly>
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit d7da1ca

Please sign in to comment.