This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
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
2 changed files
with
52 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
rm -rf $JENKINS_HOME/plugins/analysis-core* | ||
|
||
mvn install -DskipTests || { echo "Build failed"; exit 1; } | ||
|
||
cp -f target/analysis-core.hpi $JENKINS_HOME/plugins/ | ||
|
||
cd $JENKINS_HOME | ||
./go.sh |
42 changes: 42 additions & 0 deletions
42
src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesPublisher.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.jenkins.plugins.analysis.core.steps; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
import io.jenkins.plugins.analysis.core.views.ResultAction; | ||
|
||
import jenkins.tasks.SimpleBuildStep; | ||
|
||
import hudson.Extension; | ||
import hudson.FilePath; | ||
import hudson.Launcher; | ||
import hudson.model.AbstractProject; | ||
import hudson.model.Run; | ||
import hudson.model.TaskListener; | ||
import hudson.tasks.BuildStepDescriptor; | ||
import hudson.tasks.Publisher; | ||
import hudson.tasks.Recorder; | ||
|
||
/** | ||
* Freestyle or Maven job {@link Recorder} that scans files or the console log for issues. Publishes the created issues | ||
* in a {@link ResultAction} in the associated run. | ||
* | ||
* @author Ullrich Hafner | ||
*/ | ||
public class IssuesPublisher extends Recorder implements SimpleBuildStep { | ||
@Override | ||
public void perform(@Nonnull final Run<?, ?> run, @Nonnull final FilePath workspace, | ||
@Nonnull final Launcher launcher, @Nonnull final TaskListener listener) { | ||
|
||
} | ||
|
||
/** | ||
* Descriptor for this step: defines the context and the UI elements. | ||
*/ | ||
@Extension | ||
public static class Descriptor extends BuildStepDescriptor<Publisher> { | ||
@Override | ||
public boolean isApplicable(final Class<? extends AbstractProject> jobType) { | ||
return true; | ||
} | ||
} | ||
} |