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

Hook results to file

We got a post-receive hook. To compile the program/s and move the executable / generated code to the correct directories.

On the push, the compiler messages is displayed on screen. How do I get this written to a file? Or how can we highlight any compiler error messages?

Example

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v origin master:master
Pushing to xxxxxxx@999.999.999.999:/home/xxxxxxx/linux.git
remote: cob32 -C nolist -uv -P -C FILESHARE -C NOANIM -C NOBELL mfmaint_emaillist.cbl
remote: * Micro Focus Server Express V5.1 revision 000 Compiler
remote: * Copyright (C) Micro Focus IP Development Limited 1984-2015.
remote: * Compiling mfmaint_emaillist.cbl
remote: * Total Messages: 0
remote: * Data: 3796 Code: 3422
remote: * Micro Focus Server Express V5.1.00 Code Generator
remote: * Copyright (C) Micro Focus IP Development Limited 1984-2015.
remote: * Accepted - verbose
remote: * Generating mfmaint_emaillist
remote: * Data: 4064 Code: 6432 Literals: 1944
 

 

Reason: I need to know if all my programs did compiled successfully. As we can push multiple programs together, the above report can be a long report to scroll through. 

If any of the following line display a count, I need a big red flag. 

remote: * Total Messages: 0

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Training & Certification

Limited Time Only—Get Early Bird Pricing on Training & Certification at Atlassian Summit 2020

Summit 2020 is one of your best opportunities to get trained—or certified—in Atlassian products. You'll be in an exciting atmosphere, surrounded by Atlassian experts who are all eager to help ea...

306 views 4 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you