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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
TAGS
Community showcase
Published in Training & Certification

Atlassian Cloud 101: Start quickly with free training

Free training for Jira, Confluence, and Jira Service Management Start faster and be more productive with Atlassian cloud products. Take the guess work out of where to begin, and gain confidence wi...

31 views 1 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