Skip to content

Git for IBM DevOps Build - Steps ​

Steps ​

Steps ​

Process steps in the Git plug-in ​

Create GitHub Status ​

Create a commit status in GitHub or GitHub Enterprise.

NameTypeDescriptionRequired
Base REST URLStringThe base URL of the REST API e.g. https://api.github.com. This value should be left blank to be automatically inferred from GitHubs webhook data, unless a different URL needs be used.No
ContextStringThe service that is providing the status.No
DescriptionStringHigh level summary of the status update.No
Source ConfigNo
StateEnumeration:The state of the status.Yes

Git Changelog ​

Perform a Git changelog and publish the results.

NameTypeDescriptionRequired
Changes URLStringNo
End DateStringEnd changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No
End RevisionStringEnd changelog at this revisionNo
Source ConfigNo
Start DateStringStart changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No
Start RevisionStringStart changelog at this revisionNo

Git Checkout ​

Perform a Git checkout of the workflows source

NameTypeDescriptionRequired
Clean WorkspaceBooleanErase all files from the workspace before performing checkoutNo
DateStringDate of sourcecode to checkout (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch). Defaults to the current time.No
Source ConfigNo

Git Cleanup ​

Perform a cleanup of the Git working directory

NameTypeDescriptionRequired
Source ConfigNo

Git Create Tag ​

Create a tag in Git of the specified working copy.

NameTypeDescriptionRequired
MessageStringA message for the commitYes
Source ConfigNo
TagStringThe tag name to createYes

Git Quiet Period ​

Perform a Git changelog for quiet period detection and publish most recent change date within the period.

NameTypeDescriptionRequired
End DateStringEnd changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No
Source ConfigNo
Start DateStringStart changelog at this date (yyyy-MM-dd HH:mm:ss z OR E MMM dd HH:mm:ss zzz yyyy OR milliseconds since Unix Epoch)No

Git Sparse Checkout ​

Perform a sparse Git checkout to fetch only specific files (e.g., BuildFile.json for JAC pre-workflow). This is much faster than a full checkout for large repositories.

NameTypeDescriptionRequired
Fallback BranchStringBranch to use when the configured branch contains unresolved properties (e.g., for manual builds). Leave empty to fail the step if branch cannot be resolved.No
Source ConfigNo
Sparse PatternsStringComma-separated list of files or patterns to checkout (e.g., BuildFile.json, config/*.json). Defaults to BuildFile.jsonNo

Roles in the Git plug-in ​

The plug-in adds these roles automatically to resources. You cannot add these roles manually.

Git Repository ​

Global settings for accessing git repositories.

NameTypeDescription
Command PathStringThe location of the Git executable (e.g. /usr/bin/git), if it is not specified in the PATH.
Disable Build on Draft PRBooleanSkip Build triggers on Draft Pull Requests.
Password ScriptStringEnter a script or property lookup to obtain the password. This field will only be effective if the Repository Password field is blank.
Repository Base URLStringA URL prefix for source configurations to specify a relative path to the git repository. (e.g. https://git.example.com/repos or ssh://git.example.com/repos)
Repository PasswordPasswordThe password to use for http(s) access to repositories
Repository UsernameStringThe username to use for http(s) access to repositories
Use Author EmailBooleanThe plugin will use the committer’s email instead of the author’s name.By default, the author name is used.

Git Source Repo ​

NameTypeDescription
BranchStringThe remote branch name to check out (defaults to master)
Directory OffsetStringDirectory offset from the current jobs working directory. (Use . to clone into the current working directory)
Exclude FiltersStringExclude this list of usernames
File FiltersStringRestrict changelog to files matching these patterns. Lines start with + to include and to exclude. Wildcards *, **, and ? are allowed.
Remote NameStringThe name to use for the remote (defaults to origin)
Remote URLStringThe path to the project repository e.g. username/project. The value of Remote URL will be appended to the repositorys Base URL
RepositorySelect the Git Repository