Skip to content

Commit 4dd4d6a

Browse files
committed
Added more docs to readme.
1 parent 773d37e commit 4dd4d6a

3 files changed

Lines changed: 39 additions & 3 deletions

File tree

TodoList.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In order of urgency
44

5-
- [x] Remove artifacts when build cleanup up
5+
- [x] Remove artifacts when build cleanup runs
66
- [x] Add pool browsing
77
- [x] Tidy up editRepository.jsp heading
88
- [x] Add rename and project edit dialog to edit screen and validate repo name to be URL friendly

readme.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,40 @@ A repository can be deleted by clicking the *Delete repository...* link in the A
5858
There are links on the Edit Repository pages, and the Debian Repositories page (in the breadcrumb of the Edit page) to browse a repository.
5959
![Screenshot of Repository browser](docs/images/tcdebrepository_browse.png "The Debian File Repository is browsable and publicly available")
6060

61-
61+
### Configuring a Debian server to use tcDebRepository
62+
The `/etc/apt/sources.list` file needs to be modified on your Debian computer to include the APT line entry of the Debian Repository located on the TeamCity server. Alternatively, a new file created in `/etc/apt/sources.list.d/` named something like `teamcity.list` containing the APT line.
63+
64+
Browse your Debian Repository (see section prior to this). Navigate into `dists/<dist_name>/<component_name>` and the exact APT line to add is displayed to allow copy and paste. It will look similar to this following example:
65+
66+
deb http://teamcity.mycompany.com/app/debrepo/MyRepoName/ jessie main
67+
68+
Then run the following on the Debian machine:
69+
70+
sudo apt-get update
71+
sudo apt-get --force-yes install <package_name>
72+
73+
The `--force-yes` command tells Debian to trust unsigned packages from the repository. This is only applicable until version 1.1 of tcDebRepository plugin is released which will provide support for authenticated repositories. See [this GitHub issue](https://github.com/tcplugins/tcDebRepository/issues/3 "GitHub issue about signed repositories") for an update. I simply ran out of time to implement that before the December 6th competition deadline.
74+
75+
### tcDebRepository compatibility
76+
#### TeamCity versions
77+
The tcDebRepository plugin has been tested on TeamCity 8.1.5, 9.1.7, 10.0.2 on Oracle Java versions 8 or 7.
78+
79+
TeamCity version | Java Version | Result
80+
---------------- | ------------ | ------
81+
10.0.2 | 1.8.0_65-b17 | All services and UI working correctly
82+
9.1.7 | 1.7.0_65-b17 | All services and UI working correctly
83+
8.1.5 | 1.7.0_65-b17 | All services working correctly. Repositories need to be manually edited* - .BuildServer/config/deb-repositories.xml
84+
85+
I do intend to resolve UI issues on TC8 in future.
86+
87+
#### Debian Versions
88+
Distro | Version | Result
89+
------ | ------- | ------
90+
Debian | wheezy | Packages install correctly when pass in `--force-yes` option
91+
Debian | jessie | Packages install correctly when pass in `--force-yes` option
92+
Ubuntu | precise | Packages install correctly when pass in `--force-yes` option
93+
Ubuntu | wily | Packages install correctly when pass in `--force-yes` option
94+
Ubuntu | xenial | Packages fail to install. Probably due to unsigned repository
95+
Ubuntu | zesty | Packages fail to install. Probably due to unsigned repository
96+
97+

tcdebrepo-server/src/main/java/debrepo/teamcity/web/DebDownloadController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse
203203
linkItems.add(LinkItem.builder().text("binary-" + arch).type(LINK_TYPE_REPO_DIR).url("./binary-" + arch + "/").build());
204204
}
205205
params.put("linkItems", linkItems);
206-
params.put("alertInfo", StringUtils.getDebRepoUrl(myServer.getRootUrl(), repoName) + " " + distName + " " + component);
206+
params.put("alertInfo", "deb " + StringUtils.getDebRepoUrl(myServer.getRootUrl(), repoName) + " " + distName + " " + component);
207207
params.put("directoryTitle", repoName);
208208
params.put("currentPathLevel", component);
209209

0 commit comments

Comments
 (0)