Viswanthan Ramamoorhty Posted June 4, 2019 Share Posted June 4, 2019 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 More sharing options...
Viswanthan Ramamoorhty Posted June 7, 2019 Author Share Posted June 7, 2019 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 More sharing options...
Viswanthan Ramamoorhty Posted June 12, 2019 Author Share Posted June 12, 2019 Update on this, File got created. Discarded all the Ant scripts for sending emails Configured emails through Jenkins plugin 'Editable email notifications under Post Build actions. Now the job is running properly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now