Agree. Timeouts can be as long as 10 hours, which would bring the wait time
up to an hour. Let's make it fixed with an option to configure globally.

On Tuesday, July 23, 2013, Roman Timushev wrote:

> In
> src/main/java/com/qubell/jenkinsci/plugins/qubell/builders/QubellBuilder.java:
>
> > +     * Waits for instance status to be equal to {@link #expectedStatus} with given {@link #timeout}
> > +     *
> > +     *
> > +     * @param buildLog build log
> > +     * @param instance instance to be queries
> > +     * @return true if instance gained expected status, false if timeout exceed before
> > +     * @throws InvalidCredentialsException when credentials in configuration are invalid
> > +     * @throws InterruptedException        when wait was interrupted
> > +     */
> > +    private boolean waitForInstanceStatus(PrintStream buildLog, Instance instance) throws InvalidCredentialsException, InterruptedException {
> > +        logMessage(buildLog, "Waiting for instance status %s with timeout of %d seconds", expectedStatus, timeout);
> > +
> > +        StopWatch sw = new StopWatch();
> > +        sw.start();
> > +        int waitTime = timeout / 10;
> > +        waitTime = waitTime < 5 ? 5 : waitTime;
>
> This is questionable, may be it is better just to have a fixed wait time.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/qubell/contrib-jenkins-qubell-plugin/pull/1/files#r5341470>
> .
>