Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is NOT possible to mount Artifactory repositories as network drives in Windows due to unsupported commands, more information at https://www.jfrog.com/confluence/display/RTF/Using+WebDAV

However, you can utilise for example https://cyberduck.io/ opensource for working with files in Artifactory repositories.

...

Code Block
Repo URL: https://artifactory.shared.tds.CUSTOMERX.COM/artifactory/myrepoxxxname/
username: srv123abc
password: SomEv3ryNic€PassWORD:)
mount point: /MyRepoMountPoint
script and service name: myreporemount

Create a mount point

Code Block
mkdir -p /MyRepoMountPoint
chown srv123abc:srv123abc -R /MyRepoMountPoint/

Install

...

the WebDAV module

CentOS

Code Block
yum install davfs2 -y

...

Code Block
apt-get install davfs2 -y
#Answer NO to unprivileged mouting of webdav mount points

(CONDITIONAL) disable proxies for

...

WebDAV

In case you are working in the environment with network proxies required to access the internet, you might need to disable proxies for davfs.

...

Mount prepared mountpoint

Code Block
mount -av

Response The response should be like:

Code Block
#root@jenkinsdev:~# mount -av
#/                        : ignored
#/MyRepoMountPoint: successfully mounted

Create the following re-mount script and service for automatic start

...

Info

What does it do:

  • creates mounting script
  • creates a service unit to autostart/automount after reboot
  • starts synchronisation by creating some file, waiting a few moments and removing that file

...