-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
2,632 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
target | ||
.classpath | ||
.idea | ||
*.iml | ||
.project | ||
.settings | ||
bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,19 +14,22 @@ | |
<parent> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>plugin</artifactId> | ||
<version>1.567</version> | ||
<version>1.609.2</version> | ||
</parent> | ||
|
||
<artifactId>slack</artifactId> | ||
<packaging>hpi</packaging> | ||
<version>2.0-SNAPSHOT</version> | ||
<version>2.1-SNAPSHOT</version> | ||
<name>Slack Notification Plugin</name> | ||
<description>A Build status publisher that notifies channels on a Slack team</description> | ||
<url>http://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<workflow.version>1.11</workflow.version> | ||
<hamcrest.version>1.3</hamcrest.version> | ||
<powermock.version>1.6.2</powermock.version> | ||
</properties> | ||
|
||
<licenses> | ||
|
@@ -40,10 +43,20 @@ | |
<connection>scm:git:ssh://[email protected]/jenkinsci/slack-plugin.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/jenkinsci/slack-plugin.git</developerConnection> | ||
<url>https://github.com/jenkinsci/slack-plugin</url> | ||
<tag>HEAD</tag> | ||
<tag>head</tag> | ||
</scm> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>1.3</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<version>2.4.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-httpclient</groupId> | ||
<artifactId>commons-httpclient</artifactId> | ||
|
@@ -54,6 +67,12 @@ | |
<artifactId>json</artifactId> | ||
<version>20131018</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-all</artifactId> | ||
<version>1.3</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
|
@@ -89,14 +108,91 @@ | |
<artifactId>jna</artifactId> | ||
<version>3.2.2</version> | ||
</dependency> | ||
<!-- for workflow support --> | ||
<dependency> | ||
<groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
<artifactId>workflow-step-api</artifactId> | ||
<version>${workflow.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
<artifactId>workflow-cps</artifactId> | ||
<version>${workflow.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
<artifactId>workflow-job</artifactId> | ||
<version>${workflow.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> <!-- StepConfigTester --> | ||
<groupId>org.jenkins-ci.plugins.workflow</groupId> | ||
<artifactId>workflow-step-api</artifactId> | ||
<classifier>tests</classifier> | ||
<version>${workflow.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-core</artifactId> | ||
<version>${hamcrest.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-library</artifactId> | ||
<version>${hamcrest.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-all</artifactId> | ||
<version>1.10.19</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.powermock</groupId> | ||
<artifactId>powermock-core</artifactId> | ||
<version>${powermock.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.powermock</groupId> | ||
<artifactId>powermock-module-junit4</artifactId> | ||
<version>${powermock.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.powermock</groupId> | ||
<artifactId>powermock-api-mockito</artifactId> | ||
<version>${powermock.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.powermock</groupId> | ||
<artifactId>powermock-reflect</artifactId> | ||
<version>${powermock.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.5.2</version> | ||
<configuration> | ||
<tagNameFormat>slack-@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jenkins-ci.tools</groupId> | ||
<artifactId>maven-hpi-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<goals>deploy</goals> | ||
<compatibleSinceVersion>2.0</compatibleSinceVersion> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
|
@@ -123,13 +219,23 @@ | |
The id should be the jenkinsci.org username and not your GitHub username. | ||
--> | ||
<developers> | ||
<developer> | ||
<id>kmadel</id> | ||
<name>Kurt Madel</name> | ||
<email>[email protected]</email> | ||
<url>https://github.com/kmadel</url> | ||
<roles> | ||
<role>maintainer</role> | ||
</roles> | ||
<timezone>America/New_York</timezone> | ||
</developer> | ||
<developer> | ||
<id>sag47</id> | ||
<name>Sam Gleske</name> | ||
<email>[email protected]</email> | ||
<url>https://github.com/samrocketman</url> | ||
<roles> | ||
<role>maintainer</role> | ||
<role>committer</role> | ||
</roles> | ||
<timezone>America/Los_Angeles</timezone> | ||
</developer> | ||
|
36 changes: 18 additions & 18 deletions
36
src/main/java/jenkins/plugins/slack/DisabledNotifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package jenkins.plugins.slack; | ||
|
||
import hudson.model.AbstractBuild; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class DisabledNotifier implements FineGrainedNotifier { | ||
public void started(AbstractBuild r) { | ||
} | ||
|
||
public void deleted(AbstractBuild r) { | ||
} | ||
|
||
public void finalized(AbstractBuild r) { | ||
} | ||
|
||
public void completed(AbstractBuild r) { | ||
} | ||
} | ||
package jenkins.plugins.slack; | ||
|
||
import hudson.model.AbstractBuild; | ||
|
||
@SuppressWarnings("rawtypes") | ||
public class DisabledNotifier implements FineGrainedNotifier { | ||
public void started(AbstractBuild r) { | ||
} | ||
|
||
public void deleted(AbstractBuild r) { | ||
} | ||
|
||
public void finalized(AbstractBuild r) { | ||
} | ||
|
||
public void completed(AbstractBuild r) { | ||
} | ||
} |
38 changes: 19 additions & 19 deletions
38
src/main/java/jenkins/plugins/slack/FineGrainedNotifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package jenkins.plugins.slack; | ||
|
||
import hudson.model.AbstractBuild; | ||
|
||
public interface FineGrainedNotifier { | ||
|
||
@SuppressWarnings("rawtypes") | ||
void started(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void deleted(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void finalized(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void completed(AbstractBuild r); | ||
|
||
} | ||
package jenkins.plugins.slack; | ||
|
||
import hudson.model.AbstractBuild; | ||
|
||
public interface FineGrainedNotifier { | ||
|
||
@SuppressWarnings("rawtypes") | ||
void started(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void deleted(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void finalized(AbstractBuild r); | ||
|
||
@SuppressWarnings("rawtypes") | ||
void completed(AbstractBuild r); | ||
|
||
} |
Oops, something went wrong.