Bitbucket Plugin Details
Plugin Version: 1.0.0Overview
Bitbucket Information:
Version Supported:
Plugin Operation:
1. CheckOutCode
This operation allows to check out code and pulls them in a local repository path;.
Input parameter(s):
Parameter | Is Mandatory | Help Text |
---|---|---|
Bitbucket Repository |
true |
URL of the repository to pull from, |
Destination Directory |
false |
Indicate the path where the source tree will be created (can be relative to the job’s workspace) |
Branch |
false |
Bitbucket branch name which branch you want to clone(that branch should present into that particular repository that you are cloning). |
Output parameter(s):
Parameter | Help Text |
---|---|
IsFilePresent |
Is file downloaded. |
BitbucketStatus |
Final CheckOutCode Status. |
Pass/Fail Condition:
Status | Required string in outputlog |
---|---|
Passed |
If files are physically present in the provided directory, output log is not empty, and doesn’t contains any of the following:
|
Failed |
If the output log is not empty and contains any of the following:
|
2. ExecuteCommand
This operation allows to execute raw git command or any bitbucket specific command.
Input parameter(s):
Parameter | Is Mandatory | Help Text |
---|---|---|
Base URL |
true |
Provide the base URL of Boomi instance. |
Command |
true |
Raw git command or any bitbucket command to be executed. |
Error Text |
false |
This field can be used to supply error text to search in console log after execution. If given text found in console log, overall task status will be error. To concat multiple error text use ‘||’ operator. Leading and trailing space will be trimmed before searching. i.e. Sample Error Text : Fatal || Error. |
Output parameter(s):
Parameter | Help Text |
---|---|
BitbucketStatus |
Final ExecuteCommand Status. |
Pass/Fail Condition:
Status | Required string in outputlog |
---|---|
Passed |
If the outputlog is not empty, doesn’t contains any value of “Error Text” parameter and doesn’t contains any of the following:
|
Failed |
If the outputlog is not empty, contains any value of “Error Text” parameter or contains any of the following:
|
Sample Commands
These are sample commands that can be tested through this plugin.
Sample Command(s):
Command | Description | Example |
---|---|---|
git config –global user.name “<Registered UserName>” |
To configure the git terminal first time. |
git config –global user.name “xyz” |
git clone <Path to your repository> |
If you want to simply clone a repository then run this command in your terminal. |
git clone http://192.168.12.211:7990/scm/abc/xyz-repository.git |
cd existing-project |
If you already have code ready to be pushed to this repository then run this in your terminal. |
cd /d E:\Bitbucket |
cd existing-project |
If your code is already tracked by Git and you have added some new files or you have made some changes in any file and you want to push it to your repo then use this command. |
cd /d E:\Bitbucket |
cd existing project |
To send changes to the master branch of your remote repository. |
cd /d E:\Bitbucket |
cd existing project |
To see list the files you’ve changed and those you still need to add or commit. |
cd /d E:\Bitbucket |
cd existing project |
If you haven’t connected your local repository to a remote server, run this command to add the server to be able to push to it |
cd /d E:\Bitbucket |
cd existing project |
To see list of all currently configured remote repositories. |
cd /d E:\Bitbucket |
cd existing project |
To create a new branch locally and switch to it. |
cd /d E:\Bitbucket |
cd existing project |
To switch from one branch to another. |
cd /d E:\Bitbucket |
cd existing project |
To get list of all the branches in your repo, and also tell you what branch you’re currently in. |
cd /d E:\Bitbucket |
cd existing project |
To push the branch to your remote repository, so others can use it. |
cd /d E:\Bitbucket |
Disclaimers:
- Git client should be downloaded and installed in client node(machine) and path variable of git client should be added into environment variable before perform any operation.
Release Details:
Initial version with basic functionalities.