Bitbucket:绑定技巧中的文件以供下载 [英] Bitbucket: Bind a file from tip to be download-able

查看:145
本文介绍了Bitbucket:绑定技巧中的文件以供下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个私有存储库中工作,并且与我的朋友合作,而朋友对SCM和其他内容并不十分友好.他所需要做的只是监视我开发中的最新版本,即一个可执行文件.

I am working inside a private repository, and collaborate with my friend, who are not very friendly with SCM and stuff. All he need is to monitor the latest release from my development, which is 1 single executable file.

我想知道的是,而不是每次他想要获取最新更改时都克隆整个仓库(有时我的更改集可以包含几个仅在开发时使用而不用于测试的大型二进制文件).我可以将可执行文件绑定到BitBucket的下载"部分吗?这样,每次我构建项目时,可执行文件就会出现在下载"部分中,他可以立即下载该文件.

I was wondering instead of cloning the whole repo each time he want to get the latest changes (sometimes my changeset can consists of several large binary files that only being used upon development, not testing). Can I bind the executable file into the Download section in BitBucket?. So that everytime I build my project, the executable file will appear in the Download section and he can download it right away.

现在,我从Bitbucket的下载部分看到的只是手动上传和标签/快照下载,我认为它们会将某些变更集打包到压缩文件中.我有机会做到这一点吗?.

For now all I can see from Bitbucket's download section is just the manual upload and Tag/Snapshot download, which I presume will pack a certain changesets into a compressed file. Is there any chance I can do this?.

谢谢.

推荐答案

如果将可执行文件检入到存储库中,则可以在特定的版本上链接到它:

If your executable file is checked into the repository, you can link to it at a specific revision:

https://staging.bitbucket.org/<username>/<repo>/raw/<revision>/file.exe

例如,此链接将始终为您提供Mercurial存储库中最新的稳定hg(1)手册页:

For example, this link will always give you the latest stable hg(1) man page from the Mercurial repository:

https://bitbucket.org/mirror/mercurial/raw/stable/doc/hg.1.txt

这将为您提供有关Django存储库默认分支的最新自述文件:

This would give you latest README on the default branch from the Django repository:

https://bitbucket.org/django/django/raw/default/README

如果未将可执行文件签入到存储库中(有些人不愿签入构建工件),则需要在存储库的下载"部分中手动上载它们.目前没有用于创建项目下载的REST API.

If your executable isn't checked into the repository (some prefer not to check in build artifacts), you'll need to manually upload them in the downloads section of your repository. There isn't a REST API for creating project downloads at the moment.

这篇关于Bitbucket:绑定技巧中的文件以供下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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