Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Hook results to file

RiaanP-ZA May 23, 2019

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
TAGS
AUG Leaders

Atlassian Community Events