October 11-13, 2022

GitKon 2022

Git Integration for Jira Self-Managed (Data Center/Server) Documentation

ScriptRunner – Javadocs – Class Repository

All implemented interfaces :

  • com.bigbrassband.jira.git.services.props.GProperties

Summary

Constructors

Visibility Signature
public Repository()
public Repository( Integer id, String displayName)

Methods

Type and modifiers Method signature
public String getApiFilter()
public String getApiPath()
public String getAwsRegion()
public String getBranchLinkFormat()
public String getChangesetFormat()
public Boolean getCreateInitialCommit()
public String getDisplayName()
public Boolean getEnableFetches()
public String getFileAddedFormat()
public String getFileDeletedFormat()
public String getFileModifiedFormat()
public Integer getFolderDepth()
public String getGroup()
public Integer getId()
public Date getInitDate()
public IntegrationType getIntegrationType()
public Date getLastIndexedDate()
public String getMainBranch()
public Integer getMaxMinsToCommitEmail()
public String getMergeRequestFormat()
public String getOrigin()
public Set < Long > getProjectMappingIds()
public String getRealRoot()
public String getRefSpecCustom()
public String getRepositoryHostingUrl()
public String getRepositoryKey()
public Boolean getRevisionIndexing()
public String getRoot()
public Boolean getSendCommitEmails()
public Boolean getShowAllTags()
public Integer getSshKeyId()
public Boolean getSupportsBranchCreationApi()
public String getSupportsPullRequestApi()
public String getTagsFilter()
public String getTfsCollection()
public Integer getTrackedFolderId()
public String getUsername()
public String getViewFormat()
public String getWebLinkType()
public Boolean isAbsoluteRoot()
public Boolean isCommitsValidationRequired()
public Boolean isDisableSslVerification()
public Boolean isDisabled()
public Boolean isGitViewerEnabled()
public Boolean isGlobal()
public Boolean isHosted()
public Boolean isRefSpecChanges()
public Boolean isRefSpecNotes()
public Boolean isRequireUserPat()
public Boolean isSmartCommitsEnabled()
public Boolean isSourcesDiffViewEnabled()
public Boolean isTrustFolderStat()
public void setAbsoluteRoot( Boolean absoluteRoot)
public void setApiFilter( String apiFilter)
public void setApiPath( String apiPath)
public void setAwsRegion( String awsRegion)
public void setBranchLinkFormat( String branchLinkFormat)
public void setChangesetFormat( String changesetFormat)
public void setCommitsValidationRequired( Boolean commitsValidationRequired)
public void setCreateInitialCommit( Boolean createInitialCommit)
public void setDisableSslVerification( Boolean disableSslVerification)
public void setDisabled( Boolean disabled)
public void setDisplayName( String displayName)
public void setEnableFetches( Boolean enableFetches)
public void setEncryptedPassword(com.bigbrassband.jira.git.utils.EncryptedString password)
public void setEncryptedPat(com.bigbrassband.jira.git.utils.EncryptedString pat)
public void setFileAddedFormat( String fileAddedFormat)
public void setFileDeletedFormat( String fileDeletedFormat)
public void setFileModifiedFormat( String fileModifiedFormat)
public void setFolderDepth( Integer folderDepth)
public void setGitViewerEnabled( Boolean gitViewerEnabled)
public void setGlobal( Boolean global)
public void setGroup( String group)
public void setHosted( Boolean hosted)
public void setId( Integer id)
public void setInitDate( Date initDate)
public void setIntegrationType(IntegrationType integrationType)
public void setLastIndexedDate( Date lastIndexedDate)
public void setMainBranch( String mainBranch)
public void setMaxMinsToCommitEmail( Integer maxMinsToCommitEmail)
public void setMergeRequestFormat( String mergeRequestFormat)
public void setOrigin( String origin)
public void setPassword( String password)
public void setPat( String pat)
public void setProjectMappingIds( Set < Long > projectMappingIds)
public void setRealRoot( String realRoot)
public void setRefSpecChanges( Boolean refSpecChanges)
public void setRefSpecCustom( String refSpecCustom)
public void setRefSpecNotes( Boolean refSpecNotes)
public void setRepositoryHostingUrl( String repositoryHostingUrl)
public void setRepositoryKey( String repositoryKey)
public void setRequireUserPat( Boolean requireUserPat)
public void setRevisionIndexing( Boolean revisionIndexing)
public void setRoot( String root)
public void setSendCommitEmails( Boolean sendCommitEmails)
public void setShowAllTags( Boolean showAllTags)
public void setSmartCommitsEnabled( Boolean smartCommitsEnabled)
public void setSourcesDiffViewEnabled( Boolean sourcesDiffViewEnabled)
public void setSshKeyId( Integer sshKeyId)
public void setSupportsBranchCreationApi( Boolean supportsBranchCreationApi)
public void setSupportsPullRequestApi( String supportsPullRequestApi)
public void setTagsFilter( String tagsFilter)
public void setTfsCollection( String tfsCollection)
public void setTrackedFolderId( Integer trackedFolderId)
public void setTrustFolderStat( Boolean trustFolderStat)
public void setUsername( String username)
public void setViewFormat( String viewFormat)
public void setWebLinkType( String webLinkType)
public static java.util.function.Function<com.bigbrassband.jira.git.services.gitmanager.GitManager, Repository> toRepositoryTransformer(com.bigbrassband.jira.git.services.gitmanager.MultipleGitRepositoryManager repositoryManager)
public static java.util.function.Function<com.bigbrassband.jira.git.services.gitmanager.GitManager, Repository> toShortFormRepositoryTransformer(com.bigbrassband.jira.git.services.gitmanager.MultipleGitRepositoryManager repositoryManager)

Constructors

Repository()

Repository(Integer, String)

Repository(GitManager, IntegrationType, boolean)

Methods

getApiFilter()

Returns the JMESPath Filter property of the repository.

getApiPath()

Returns the Custom API Path property of the repository.

getAwsRegion()

Returns the AWS region property. Used for AWS repositories only.

getBranchLinkFormat()

getChangesetFormat()

getCreateInitialCommit()

getDisplayName()

Returns the display name of the repository.

getEnableFetches()

getFileAddedFormat()

getFileDeletedFormat()

getFileModifiedFormat()

getFolderDepth()

getGroup()

getId()

getInitDate()

getIntegrationType()

getLastIndexedDate()

getMainBranch()

getMaxMinsToCommitEmail()

getMergeRequestFormat()

getOrigin()

getProjectMappingIds()

getRealRoot()

getRefSpecCustom()

getRepositoryHostingUrl()

getRepositoryKey()

getRevisionIndexing()

getRoot()

getSendCommitEmails()

getShowAllTags()

getSshKeyId()

getSupportsBranchCreationApi()

getSupportsPullRequestApi()

getTagsFilter()

getTfsCollection()

getTrackedFolderId()

getUsername()

getViewFormat()

getWebLinkType()

isAbsoluteRoot()

isCommitsValidationRequired()

isDisableSslVerification()

isDisabled()

isGitViewerEnabled()

isGlobal()

isHosted()

isRefSpecChanges()

isRefSpecNotes()

isRequireUserPat()

isSmartCommitsEnabled()

isSourcesDiffViewEnabled()

isTrustFolderStat()

setAbsoluteRoot(Boolean)

setApiFilter(String)

setApiPath(String)

setAwsRegion(String)

setBranchLinkFormat(String)

setChangesetFormat(String)

setCommitsValidationRequired(Boolean)

setCreateInitialCommit(Boolean)

setDisableSslVerification(Boolean)

setDisabled(Boolean)

setDisplayName(String)

Sets the display name of the repository.
This is the name that will appear in the Git Integration for Jira app repositories list.

GIJFacade.createRepsitory(): Optional. Autogenerated by default.

GIJFacade.updateRepository(): Optional.

Parameters

  • displayName: the new display name

setEnableFetches(Boolean)

setEncryptedPassword(EncryptedString)

Sets new password for the git repository. Leave blank and use PAT if 2FA is enabled on the git server.

The IN password will be encrypted.
Use initPassword() when none encryption is required.
GIJFacade requires an IntegrationRequest with an encrypted password, so use setPassword() instead of initPassword().

Parameters

  • password: new password

setEncryptedPat(EncryptedString)

setFileAddedFormat(String)

setFileDeletedFormat(String)

setFileModifiedFormat(String)

setFolderDepth(Integer)

setGitViewerEnabled(Boolean)

setGlobal(Boolean)

setGroup(String)

setHosted(Boolean)

setId(Integer)

setInitDate(Date)

setIntegrationType(IntegrationType)

setLastIndexedDate(Date)

setMainBranch(String)

setMaxMinsToCommitEmail(Integer)

setMergeRequestFormat(String)

setOrigin(String)

setPassword(String)

setPat(String)

setProjectMappingIds(Set<Long>)

setRealRoot(String)

setRefSpecChanges(Boolean)

setRefSpecCustom(String)

setRefSpecNotes(Boolean)

setRepositoryHostingUrl(String)

setRepositoryKey(String)

setRequireUserPat(Boolean)

setRevisionIndexing(Boolean)

setRoot(String)

setSendCommitEmails(Boolean)

setShowAllTags(Boolean)

setSmartCommitsEnabled(Boolean)

setSourcesDiffViewEnabled(Boolean)

setSshKeyId(Integer)

setSupportsBranchCreationApi(Boolean)

setSupportsPullRequestApi(String)

setTagsFilter(String)

setTfsCollection(String)

setTrackedFolderId(Integer)

setTrustFolderStat(Boolean)

setUsername(String)

setViewFormat(String)

setWebLinkType(String)

toRepositoryTransformer(MultipleGitRepositoryManager)

toShortFormRepositoryTransformer(MultipleGitRepositoryManager)

Have feedback about this article? Did we miss something? Let us know!
On this page