本文整理了Java中hudson.model.Run.waitForCheckpoint
方法的一些代码示例,展示了Run.waitForCheckpoint
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.waitForCheckpoint
方法的具体详情如下:
包路径:hudson.model.Run
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!