hudson.model.Run.waitForCheckpoint()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(8.1k)|赞(0)|评价(0)|浏览(66)

本文整理了Java中hudson.model.Run.waitForCheckpoint方法的一些代码示例,展示了Run.waitForCheckpoint的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.waitForCheckpoint方法的具体详情如下:
包路径:hudson.model.Run
类名称:Run
方法名:waitForCheckpoint

Run.waitForCheckpoint介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Waits until the previous build in progress reaches a check point, identified
 * by the given identifier, or until the current executor becomes the youngest build in progress.
 *
 * <p>
 * Note that "previous build in progress" should be interpreted as "previous (build in progress)" instead of
 * "(previous build) if it's in progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the following time sequence:
 *
 * <ol>
 * <li>Build #1, #2, and #3 happens around the same time
 * <li>Build #3 waits for check point {@code JUnitResultArchiver}
 * <li>Build #2 aborts before getting to that check point
 * <li>Build #1 finally checks in {@code JUnitResultArchiver}
 * </ol>
 *
 * <p>
 * Using this method, build #3 correctly waits until the step 4. Because of this behavior,
 * the {@link #report()}/{@link #block()} pair can normally
 * be used without a try/finally block.
 *
 * <p>
 * This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException
 *      If the build (represented by the calling executor thread) is aborted while it's waiting.  
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this, null, null);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Like {@link #block()} but allows for richer logging.
 * @param listener an optional listener to which
 * @param waiter a description of what component is requesting the wait, such as {@link Descriptor#getDisplayName}
 * @throws InterruptedException if the build is aborted while waiting
 * @since 1.528
 */
public void block(@Nonnull BuildListener listener, @Nonnull String waiter) throws InterruptedException {
  Run.waitForCheckpoint(this, listener, waiter);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Waits until the previous build in progress reaches a check point,
 * identified by the given identifier, or until the current executor becomes
 * the youngest build in progress.
 *
 * <p> Note that "previous build in progress" should be interpreted as
 * "previous (build in progress)" instead of "(previous build) if it's in
 * progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the
 * following time sequence:
 *
 * <ol> <li>Build #1, #2, and #3 happens around the same time <li>Build #3
 * waits for check point {@link JUnitResultArchiver} <li>Build #2 aborts
 * before getting to that check point <li>Build #1 finally checks in
 * {@link JUnitResultArchiver} </ol>
 *
 * <p> Using this method, build #3 correctly waits until the step 4. Because
 * of this behavior, the {@link #report()}/{@link #block()} pair can
 * normally be used without a try/finally block.
 *
 * <p> This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException If the build (represented by the calling
 * executor thread) is aborted while it's waiting.
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this);
}
/**

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Waits until the previous build in progress reaches a check point, identified
 * by the given identifier, or until the current executor becomes the youngest build in progress.
 *
 * <p>
 * Note that "previous build in progress" should be interpreted as "previous (build in progress)" instead of
 * "(previous build) if it's in progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the following time sequence:
 *
 * <ol>
 * <li>Build #1, #2, and #3 happens around the same time
 * <li>Build #3 waits for check point {@link JUnitResultArchiver}
 * <li>Build #2 aborts before getting to that check point
 * <li>Build #1 finally checks in {@link JUnitResultArchiver}
 * </ol>
 *
 * <p>
 * Using this method, build #3 correctly waits until the step 4. Because of this behavior,
 * the {@link #report()}/{@link #block()} pair can normally
 * be used without a try/finally block.
 *
 * <p>
 * This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException
 *      If the build (represented by the calling executor thread) is aborted while it's waiting.  
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Waits until the previous build in progress reaches a check point, identified
 * by the given identifier, or until the current executor becomes the youngest build in progress.
 *
 * <p>
 * Note that "previous build in progress" should be interpreted as "previous (build in progress)" instead of
 * "(previous build) if it's in progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the following time sequence:
 *
 * <ol>
 * <li>Build #1, #2, and #3 happens around the same time
 * <li>Build #3 waits for check point {@code JUnitResultArchiver}
 * <li>Build #2 aborts before getting to that check point
 * <li>Build #1 finally checks in {@code JUnitResultArchiver}
 * </ol>
 *
 * <p>
 * Using this method, build #3 correctly waits until the step 4. Because of this behavior,
 * the {@link #report()}/{@link #block()} pair can normally
 * be used without a try/finally block.
 *
 * <p>
 * This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException
 *      If the build (represented by the calling executor thread) is aborted while it's waiting.  
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this, null, null);
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Waits until the previous build in progress reaches a check point, identified
 * by the given identifier, or until the current executor becomes the youngest build in progress.
 *
 * <p>
 * Note that "previous build in progress" should be interpreted as "previous (build in progress)" instead of
 * "(previous build) if it's in progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the following time sequence:
 *
 * <ol>
 * <li>Build #1, #2, and #3 happens around the same time
 * <li>Build #3 waits for check point {@link JUnitResultArchiver}
 * <li>Build #2 aborts before getting to that check point
 * <li>Build #1 finally checks in {@link JUnitResultArchiver}
 * </ol>
 *
 * <p>
 * Using this method, build #3 correctly waits until the step 4. Because of this behavior,
 * the {@link #report()}/{@link #block()} pair can normally
 * be used without a try/finally block.
 *
 * <p>
 * This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException
 *      If the build (represented by the calling executor thread) is aborted while it's waiting.  
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this);
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Waits until the previous build in progress reaches a check point, identified
 * by the given identifier, or until the current executor becomes the youngest build in progress.
 *
 * <p>
 * Note that "previous build in progress" should be interpreted as "previous (build in progress)" instead of
 * "(previous build) if it's in progress". This makes a difference around builds that are aborted or
 * failed very early without reporting the check points. Imagine the following time sequence:
 *
 * <ol>
 * <li>Build #1, #2, and #3 happens around the same time
 * <li>Build #3 waits for check point {@link JUnitResultArchiver}
 * <li>Build #2 aborts before getting to that check point
 * <li>Build #1 finally checks in {@link JUnitResultArchiver}
 * </ol>
 *
 * <p>
 * Using this method, build #3 correctly waits until the step 4. Because of this behavior,
 * the {@link #report()}/{@link #block()} pair can normally
 * be used without a try/finally block.
 *
 * <p>
 * This method can be only called from an {@link Executor} thread.
 *
 * @throws InterruptedException
 *      If the build (represented by the calling executor thread) is aborted while it's waiting.  
 */
public void block() throws InterruptedException {
  Run.waitForCheckpoint(this);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Like {@link #block()} but allows for richer logging.
 * @param listener an optional listener to which
 * @param waiter a description of what component is requesting the wait, such as {@link Descriptor#getDisplayName}
 * @throws InterruptedException if the build is aborted while waiting
 * @since 1.528
 */
public void block(@Nonnull BuildListener listener, @Nonnull String waiter) throws InterruptedException {
  Run.waitForCheckpoint(this, listener, waiter);
}

相关文章

微信公众号

最新文章

更多

Run类方法