Setup JIRA and BitBucket in VS Code

1. Install the git on desktop.

https://git-scm.com/download/win

2. VS code

https://code.visualstudio.com/download

3. Extension needed

‘’JIRA and Bitbucket Official’

‘Bitbucket Pull Request’

‘Git’

We have to set up Bitbucket from GIT bash with following commands.

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

We can use one of command in GIT bash. User.name will be Bitbucket user name and User.email also Bitbucket user email.

After Installation extensions two plugin will be display in bottom of VS code.

Click on both plugins and you will redirect on login window. Please login into JIRA and BitBucket account. After login we will redirect on VS code and click on Atlassian pic. You will see all the JIRA tickets (Open and assign to you).

Benefits of JIRA integration.

A. you can create JIRA ticket directly from VS code and it will show directly in JIRA board

B. You can start work from JIRA and also create git branch. Same time it will be display in Bitbucket.

4. Enable Bitbucket in VS code we have to use desktop git application one time for login. After that we can commit directly from VS code and push the changes.

CI and CD Setup (Working)

Lets meet in next story.🤞

Troubleshoot Section

If we are getting following error then we can use different port for this. (I got this error when I am trying to login in Salesforce)

Kill the process running on port 1717 or use a custom connected app and update OauthLocalPort in the sfdx-project.json file.

16:53:30.720 sfdx force:auth:web:login — setalias testDev — instanceurl https://test.salesforce.com — setdefaultusername ended with exit code 1

Change in sfdx-project.json file (add the oauthLocalPort Parameter)

{

“namespace”: “”,

“packageDirectories”: [

{

“path”: “src”,

“default”: true

}

],

“sfdcLoginUrl”: “test.salesforce.com”,

“sourceApiVersion”: “46.0”,

“oauthLocalPort” : 1919

}


Comments

Leave a comment