Search in sources :

Example 1 with Callable

use of hudson.remoting.Callable in project hudson-2.x by hudson.

the class SetBuildDescriptionCommand method run.

protected int run() throws Exception {
    Run run = job.getBuildByNumber(number);
    run.checkPermission(Run.UPDATE);
    if ("=".equals(description)) {
        description = channel.call(new Callable<String, IOException>() {

            public String call() throws IOException {
                return IOUtils.toString(System.in);
            }
        });
    }
    run.setDescription(description);
    return 0;
}
Also used : Run(hudson.model.Run) Callable(hudson.remoting.Callable)

Aggregations

Run (hudson.model.Run)1 Callable (hudson.remoting.Callable)1