ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker Supportgit keywords in bar file

Post new topicReply to topic
git keywords in bar file View previous topic :: View next topic
Author Message
souciance
PostPosted: Thu Oct 18, 2018 11:19 pm Post subject: git keywords in bar file Reply with quote

Disciple

Joined: 29 Jun 2010
Posts: 161

Hello,

SVN had its keywords which you could bake into the barfile. It doesn't seem that git has that functionality. Anyone solved this? We would like to see in our runtime who deployed what and from which branch. Yes, I know there a thousand other ways to do this, but if somoene can confirm that this work is doomed to fail then that would be enough.

Best
Souciance
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Oct 19, 2018 5:07 am Post subject: Re: git keywords in bar file Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25365
Location: Ohio, USA

souciance wrote:
somoene can confirm that this work is doomed to fail then that would be enough.


I can confirm that to the best of my knowledge git lacks an equivalent of the svn keywords you speak of. If someone knows better, I'd be very interested to find that out!

You'll need to use one of the thousand other ways to obtain the information and bake it into the barfile (which is of course a broker function independent of any source control technology)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Oct 19, 2018 5:09 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 25365
Location: Ohio, USA

For the record, we moved away from doing this when we moved to Git from SVN and now obtain the information you're talking about from our deployment control system (Jenkins et al).

But I would be interested in having my Git knowledge increased if someone does know this........?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
souciance
PostPosted: Fri Oct 19, 2018 1:40 pm Post subject: Reply with quote

Disciple

Joined: 29 Jun 2010
Posts: 161

Vitor wrote:
For the record, we moved away from doing this when we moved to Git from SVN and now obtain the information you're talking about from our deployment control system (Jenkins et al).

But I would be interested in having my Git knowledge increased if someone does know this........?


Yeah our Jenkins can give us this info as well but it would be sweet to inject this into the bar file. I am sure there is some bad script someone has written to get it to work.
Back to top
View user's profile Send private message
timber
PostPosted: Mon Oct 22, 2018 12:17 am Post subject: Reply with quote

Sentinel

Joined: 25 Aug 2015
Posts: 891

I expect most of you have found these already, but...
https://git.wiki.kernel.org/index.php/GitFaq#Does_Git_have_keyword_expansion.3F

https://stackoverflow.com/questions/11534655/git-keyword-substitution-like-those-in-subversion

However, you may be better off using the Git commit id (or a tag that you have attached to it) as your keyword in the BAR file, rather than a sequence number allocated by the version control system.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker Supportgit keywords in bar file
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.