通过 ANT 脚本创建 git Branch/Tag
Create git Branch/Tag via ANT script
我正在使用 ANT 脚本构建带有版本的 jar 文件。是否还有机会在 ANT 脚本的 git 存储库中创建一个 tag/branch?
您可以将 rimerosolutions/ant-git-tasks 用于 ant 中常见的 git 任务。
包括创建分支:
<git:git directory="repositoryCloneFolder" verbose="true" settingsRef="git.testing">
<git:clone uri="https://github.com/rimerosolutions/playground-repo.git"/>
<git:checkout branchName="dummyBranch" createBranch="true"/>
</git:git>
<git:git directory="${testLocalRepo}" verbose="true">
<git:tag name="${dummy.tag.name}"/>
</git:git>
我正在使用 ANT 脚本构建带有版本的 jar 文件。是否还有机会在 ANT 脚本的 git 存储库中创建一个 tag/branch?
您可以将 rimerosolutions/ant-git-tasks 用于 ant 中常见的 git 任务。
包括创建分支:
<git:git directory="repositoryCloneFolder" verbose="true" settingsRef="git.testing">
<git:clone uri="https://github.com/rimerosolutions/playground-repo.git"/>
<git:checkout branchName="dummyBranch" createBranch="true"/>
</git:git>
<git:git directory="${testLocalRepo}" verbose="true">
<git:tag name="${dummy.tag.name}"/>
</git:git>