混帐:版本的自动标注 [英] git: Automatic tagging of releases

查看:101
本文介绍了混帐:版本的自动标注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何标记您的发行版本的git?

How do you tag your release versions in git?

现在我有版本号标识每一个版本,但它们增加,即使有在回购没有变化。我的想法是有它的临时服务器上成功部署自动生成。例如。

Now I have each release identified by build number, but they increment even if there are no changes in the repo. My idea is to have it generated automatically on successful deployment on staging server. E.g.


  • 运行哈德森建立

  • 成功时,添加新的标签,即1.0-1

  • 旁边的成功的建设旁边添加标签,1.0-2

  • 则显示在网站页脚版本标记

  • run Hudson build
  • when successful, add new tag, i.e. 1.0-1
  • on next successful build add next tag, 1.0-2
  • version tag is displayed then in site footer

这将要求:


  • 哈德森管理下一个版本号

  • 或脚本最后的标签存储在一些文件

  • 或解析Git标签,以确定最后的

任何提示?

推荐答案

你正在谈论什么是更类似于<一个href=\"http://stackoverflow.com/questions/677436/how-to-get-the-git-commit-count/677510#677510\">technical版本号的像一个一个 git的描述将产生

What you are talking about is more akin to a technical revision number like the one a git describe would generate.

这是从真正的应用版本,你还是应该独立于哈德森,因为它的取决于版本政策

That is different from a true application version, which you should still managed independently from Hudson since it depends on a versioning policy.

这篇关于混帐:版本的自动标注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆