@Override protected int run() throws Exception { Authentication a = Jenkins.getAuthentication(); if (a== Jenkins.ANONYMOUS) throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. ClientAuthenticationCache store = new ClientAuthenticationCache(checkChannel()); store.set(a); SecurityListener.fireLoggedIn(a.getName()); return 0; }
@Override protected int run() throws Exception { Authentication a = Hudson.getAuthentication(); if (a==Hudson.ANONYMOUS) throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. ClientAuthenticationCache store = new ClientAuthenticationCache(channel); store.set(a); return 0; }
@Override protected int run() throws Exception { Authentication a = Hudson.getAuthentication(); if (a==Hudson.ANONYMOUS) throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. ClientAuthenticationCache store = new ClientAuthenticationCache(channel); store.set(a); return 0; }
@Override protected int run() throws Exception { Authentication a = Hudson.getAuthentication(); if (a == HudsonSecurityManager.ANONYMOUS) { throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. } ClientAuthenticationCache store = new ClientAuthenticationCache(channel); store.set(a); return 0; } }
@Override protected int run() throws Exception { Authentication a = Hudson.getAuthentication(); if (a==Hudson.ANONYMOUS) throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. ClientAuthenticationCache store = new ClientAuthenticationCache(channel); store.set(a); return 0; }
@Override protected int run() throws Exception { Authentication a = Jenkins.getAuthentication(); if (a== Jenkins.ANONYMOUS) throw new CmdLineException("No credentials specified."); // this causes CLI to show the command line options. ClientAuthenticationCache store = new ClientAuthenticationCache(checkChannel()); store.set(a); return 0; }