@Override public void run() { try { LOGGER.info("Starting the downgrade of "+getName()+" on behalf of "+getUser().getName()); _run(); LOGGER.info("Downgrade successful: "+getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade "+getName(),e); status = new Failure(e); error = e; } }
@Override public void run() { try { LOGGER.info("Starting the downgrade of "+getName()+" on behalf of "+getUser().getName()); _run(); LOGGER.info("Downgrade successful: "+getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade "+getName(),e); status = new Failure(e); } }
@Override public void run() { try { LOGGER.info("Starting the downgrade of "+getName()+" on behalf of "+getUser().getName()); _run(); LOGGER.info("Downgrade successful: "+getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade "+getName(),e); status = new Failure(e); } }
@Override public void run() { try { LOGGER.info("Starting the downgrade of "+getName()+" on behalf of "+getUser().getName()); _run(); LOGGER.info("Downgrade successful: "+getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade "+getName(),e); status = new Failure(e); } }
@Override public void run() { try { LOGGER.info("Starting the downgrade of "+getName()+" on behalf of "+getUser().getName()); _run(); LOGGER.info("Downgrade successful: "+getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade "+getName(),e); status = new Failure(e); error = e; } }
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); UpdateCenter uc = Hudson.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication())); } /**
@Override public void run() { try { LOGGER.info("Starting the downgrade of " + getName() + " on behalf of " + getUser().getName()); _run(); LOGGER.info("Downgrade successful: " + getName()); status = new Success(); onSuccess(); } catch (Throwable e) { LOGGER.log(Level.SEVERE, "Failed to downgrade " + getName(), e); status = new Failure(e); } }
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); UpdateCenter uc = Hudson.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication())); } /**
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); UpdateCenter uc = Hudson.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, HudsonSecurityManager.getAuthentication())); }
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); UpdateCenter uc = Jenkins.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Jenkins.getAuthentication())); } /**
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Hudson.getInstance().checkPermission(Hudson.ADMINISTER); UpdateCenter uc = Hudson.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Hudson.getAuthentication())); } /**
/** * Schedules the downgrade of this plugin. */ public Future<UpdateCenterJob> deployBackup() { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); UpdateCenter uc = Jenkins.getInstance().getUpdateCenter(); return uc.addJob(uc.new PluginDowngradeJob(this, UpdateSite.this, Jenkins.getAuthentication())); } /**
@Override protected void _run() throws IOException { File dst = getDestination(); File backup = getBackup(); config.install(this, backup, dst); }