Cloud customer?
Start for Free>
Upgrade in MyJFrog >
What's New in Cloud >





You are viewing an old version of this page. View thecurrent version.

Compare with CurrentView Page History

« PreviousVersion 4下一个”

Overview

ThePreMatrixgeneric step may be used to prepare a build environment for execution of a矩阵step.


When a PreMatrix step is used in a pipeline, it is guaranteed that the subsequent Matrix step will execute in the same build node, so that whatever is created in the build environment by the PreMatrix step will be available to the Matrix step.

The PreMatrix step is optional for use with Matrix builds.

For more information, seeUsing the Matrix Step.

Usage


FanOut
pipelines: - name:  steps: - name:  type: PreMatrix configuration: # inherits Bash config, except affinityGroup and outputResources execution: onStart: - echo "Preparing for work..." onExecute: # required - echo "this is a PreMatrix step" onSuccess: - echo "Job well done!" onFailure: - echo "uh oh, something went wrong" onComplete: #always - echo "Cleaning up some stuff"



Page Contents

Tags

name

Analphanumericstring (underscores are permitted) that identifies the step.

类型

Must bePreMatrixfor this step type.

configuration

Specifies all configuration selections for the step's execution environment.This step inherits theBash/PowerShellstep configuration tags,except for这些tags, which are disallowed:

  • affinityGroup
  • outputResources

execution

Declares collections of shell command sequences to perform for pre- and post-execution phases:

Tag Description of usage Required/Optional
onStart Commands to execute in advance ofonExecute Optional

onExecute

Main commands to execute for the step Optional
onSuccess Commands to execute on successful completion Optional
onFailure Commands to execute on failed completion Optional
onComplete Commands to execute on any completion Optional
  • 没有标签
Copyright © 2023 JFrog Ltd.