Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Updated compile scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 11, 2018
1 parent b2cfaa7 commit 1db05f5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
10 changes: 10 additions & 0 deletions skip.sh
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
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;
}
}
}

0 comments on commit 1db05f5

Please sign in to comment.