Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

How to connect to git and use git diff command in TIBCO BW


Recommended Posts

Task:

1. Connect to a git account(bitbucket)

2. Compare two branches(dev and qa) -[ git diff origin/$1...origin/$2 > ../diff_$1_$2.log]

3. Write differences to a file

4. Send email

Question :

From Designer How do I connect to a git repo and execute the diff command and write the file to a specific location in tibco server

Attachements

I have prepared a script file(converted to text due to restriction in upload) containing the diff command. I thought calling this file in Execute Command activity but I dont know what are the commands to connect to git and execute this script.

Thanks in advance

Link to comment
Share on other sites

Hi

Update on this.

Seems connecting bitbucket from BW is difficult. So I have created a Jenkins job,in that added git account and in execute shell command I have used git diff command, compare the branchesand write to a file in Jenkins work directory.

Then I prepared an email ant script to zip that file and send to target email address.

While executing the job, difference file got created but while sending email its failed as the email jar file is missing in the Jenkins lib folder.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...