Action General Method

The action method is a generalized way to add Actions to pipeline Stages. Generally, it is recommended to use the helper methods like codebuild and approve when possible to keep code concise. Here’s an example of a pipeline using the generalized action method.

stage "Build" do
    name: "action1",
    action_type_id: {
      category: "Build",
      owner: "AWS",
      provider: "CodeBuild",
      version: "1",
    run_order: 1,
    configuration: { project_name: 'demo1' },
    # output_artifacts: [name: "BuildArtifact#{name}"], # optional
    input_artifacts: [name: "SourceArtifact"], # SourceArtifact is the default primary source

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub, and contributions are encouraged and welcomed. We love pull requests from you!