It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Win: custom action output not shown

Running a .bat or .sh from as custom action (e.g. the .bat file below) does not show in the SourceTree command output pop-up. Instead a Command Prompt window pops up showing the script. How do I get this output in the Sourcetree output window?

I've enabled the Show Full Output. Below is what the test bat script looks like. I expect the output to show "hi" and "by" but it just says <script name> Completed successfully.

 

@echo off
echo "hi"
sleep 2
echo "by"

 

Does anyone know why the output is not shown? Am I doing something wrong?

 

BTW Runnign sourcetree 2.1.11.0 on Windows 10 (x64) machine.

2 answers

0 votes

Hi
I can't reproduce this issue at the moment.

My batch file
test.bat

@echo off
echo "hi"
echo "bye"

 

It is then configured like this

customactiontest.PNG

 

Whihc then runs like this:

 

customactiontest-run.PNG

Weird,
Now mine is also working. Same configuration as yours @Michael Minns

Not sure what I did different this time, it should be the exact same environment as earlier...
I asked this because I'm adding some custom actions :) in a git repo and want to show/log some stuff from shell files (ran on windows using the git bash) and script location as first argument.

Anyhoo, thanks for the test configuration.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,545 views 13 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you