Ros*_*mov 4 deployment teamcity github artifact
我将TeamCity配置为拉动并构建我的github仓库.比它使用"bin/Debug"文件夹中的文件创建.zip工件.之后,我希望它创建一个带有内部版本号的新标签并将其推送到github版本,但不知道该怎么做.
经过研究,我终于找到了答案.
添加新构建步骤到Deploy: Build Steps => Add build step => CommandLine并将以下脚本粘贴到自定义脚本字段:
[PathToYourRepo] git tag Release-v0.%build.number%
[PathToYourRepo] git push
[PathToYourRepo] git push --tags
[PathToGithubReleaseExe] release --security-token [YourSecurityToken] --user [YourGithubUserName] --repo [YourRepoName] --tag Release-v0.%build.number%
[PathToGithubReleaseExe] upload --security-token [YourSecurityToken] --user [YourGithubUserName] --repo [YourRepoName] --tag Release-v0.%build.number% - name Release-v0.%build.number%.zip --file DependentArtifact.zip
就是这样!也许有一种更简单的方法可以做到,但我还没有找到它.
| 归档时间: |
|
| 查看次数: |
1653 次 |
| 最近记录: |