Skip to content

Leverage Existing Artifacts

Yi Zhang edited this page Aug 1, 2022 · 1 revision

BackGround

Genearlly, one complete CI workflow includes building and testing. Testing depends on the artifacts generated by building. Some changes, like workflow yaml or testing code, have nothing with building. For this case, it would save a lot of time if the CI workflow could run testing directly with previous building artifacts. Because we could skip unnececssary building stage.

Steps

Note that previous run's artifacts could only be used in manullay trigggering builds

1. Building is passed but testing failed.

image

2. After updating changes, start a new run and select Use specific artifact. The specific runId could be get from the URL.

image

3. Uncheck the build stage, it would run testing directly with the artifacts you've selected.

image

4. We could see the pipeline would skip current build stage and run test stage directly.

image

So far, this feature is supported in Android workflow

Clone this wiki locally