package org.jenkinsci.plugins.p4_client.review; import hudson.Extension; import hudson.Launcher; import hudson.model.BuildListener; import hudson.model.AbstractBuild; import hudson.model.AbstractProject; import hudson.tasks.BuildStepDescriptor; import hudson.tasks.BuildStepMonitor; import hudson.tasks.Notifier; import hudson.tasks.Publisher; import java.io.IOException; import java.util.logging.Logger; import org.kohsuke.stapler.DataBoundConstructor; public class ReviewNotifier extends Notifier { @DataBoundConstructor public ReviewNotifier() { LOGGER.info("ReviewNotifier -> DataBoundConstructor"); } @Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { LOGGER.info("ReviewNotifier -> perform"); return true; } public BuildStepMonitor getRequiredMonitorService() { // This BuildStep is only executed after the previous build is fully // completed. return BuildStepMonitor.BUILD; } @Extension public static final class DescriptorImpl extends BuildStepDescriptor<Publisher> { @Override public boolean isApplicable(Class<? extends AbstractProject> jobType) { return true; } @Override public String getDisplayName() { return "Review Notifier"; } } final static Logger LOGGER = Logger.getLogger(ReviewNotifier.class .getName()); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#8 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
#7 | 8979 | Paul Allen | Build Url path by hand to avoid encoding error and added "UTF-8" to the UrlEncodedFormEntity method. | ||
#6 | 8971 | Paul Allen |
Attempt to fix rootUrl bug, but ended up tidying code. Turns out that you MUST set the Jenkins URL and click Save; even though the box has a default value it is not applied unless the configuration page is Applied/Saved. Manage Jenkins --> Configuration --> Jenkins Location: Jenkins URL |
||
#5 | 8858 | Paul Allen |
Ralf's URL link back to Jenkins. The Swarm review Action ReviewNotifier posts back a Jenkins URL for build job. (Requries a FQDN for Swarm-Jenkins config) |
||
#4 | 8762 | Paul Allen |
Console Ouptut logging for SCM build steps. - Removed SLF4J and used old style logger (matching Jenkins) - Set Client Host filed to null, Jenkins sometimes gives an IP address. - Test p4java setps in SCM tasks for success(true/false) |
||
#3 | 8725 | Paul Allen |
Minor fixes: - Improved tidy workspace method - Fix for template clients - After an unshelf revert -k files - Minor bug in CheckoutTask - Clear callback urls to prevet reuse |
||
#2 | 8715 | Paul Allen |
#review-8716 [Basic Swarm-Jenkins cycle DONE] Support Job's build notification and then POST's the pass/fail call-back URLs to Swarm. |
||
#1 | 8683 | Paul Allen | Simple Action plugin hooks for building reviews in a Jenkins Job. |