Version control with Ivy
Ivy repositories can be used to store build artifacts and other binary files. In Helix TeamHub, you can create any number of Ivy repositories in your projects.
The below is the list of resources to help you learn Ivy:
Setting up
Setup credentials in ~/helixteamhub.properties
file:
hth.host=helixteamhub.cloud
hth.user=username
hth.password=password
Configure credentials and resolvers in your project's ivysettings.xml
file using the repository url:
<ivysettings>
<properties file="${user.home}/helixteamhub.properties" />
<credentials host="${hth.host}" realm="Helix TeamHub repository" username="${hth.user}" passwd="${hth.password}"/>
<settings defaultResolver="hth"/>
<resolvers>
<ibiblio name="hth" m2compatible="true" root="https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar" />
</resolvers>
</ivysettings>
Chained resolvers can be used to access multiple repositories:
<settings defaultResolver="hth-chain"/>
<resolvers>
<chain name="hth-chain">
<ibiblio name="hth" m2compatible="true" root="https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar" />
<ibiblio name="ibiblio" m2compatible="true" />
</chain>
</resolvers>
Url resolver can be used for specifying custom pattern:
<url name="hth">
<ivy pattern="https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
Importing and managing artifacts
Ivy install task can be used for importing from another repository. It is also possible to access and manage artifacts with curl
:
Upload file:
curl -i -u user:password -T file.jar https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar/file.jar
Download file:
curl -i -u user:password https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar/file.jar
Delete file/directory:
curl -i -u user:password -X DELETE https://helixteamhub.cloud/acme/projects/foo/repositories/ivy/bar/file.jar