Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
67 lines (53 loc) · 2.88 KB

GIT.md

File metadata and controls

67 lines (53 loc) · 2.88 KB

Git

Overview

Various git functions for use within your pipeline.

Tools Section

Name Type Default Section Description
message String Automatic commit from {{ job_url }} git.commit The message to attach to the commit.
pattern String . git.commit Pattern for the git add command.
author String ${env.GIT_AUTHOR} <${env.GIT_EMAIL}> git.commit Author of this commit.
amend Boolean False git.commit Whether to amend the previous commit.
push Boolean True git.commit Push the commit to git as well.
credentials Map git.commit Credentials to use when pushing to git origin.

Available Methods

commit

Execute an Ansible playbook

Name Type Default Description
message String Automatic commit from {{ job_url }} The message to attach to the commit.
pattern String . Pattern for the git add command.
author String ${env.GIT_AUTHOR} <${env.GIT_EMAIL}> Author of this commit in standard git format Name <[email protected]>.
amend Boolean False Whether to amend the previous commit.
push Boolean True Push the commit to git as well.
credentials Map Credentials to use when pushing to git origin.

commit Example

branches:
  feature:
    steps:
    - git:
      - commit: Example email from {{ build_url }}
      - commit:

Full Example Pipeline

pipelines:
  tools:
    git:
      credentials:
        description: Git credentials
    branches:
      patterns:
        feature: .+
  branches:
    feature:
      steps:
        - custom: # This should be your build process
          - buildPackage:
        - git:
          - commit:
              message: Automatic commit from pipeline.

Additional Resources