concourse.ci resource for persisting build artifacts on a shared storage location with samba.
- inspired by concourse-rsync-resource
##Config
server
: Required Server on which to persist artifacts.share
: Required Share name onServer
in which to place the artifactspath
: Required Base directory in which to place the artifactsuser
: Required User credential for login using sshpassword
: Required password for the specified user
All config required for each of the in
, out
and check
behaviors.
###Example
resource_types:
- name: samba-resource
type: docker-image
source:
repository: airtonix/concourse-resource-samba
tag: latest
resources:
- name: samba-resource
type: samba-resource
source:
server: my-server.lan
share: storage
user : user
password: {{ samba_password_from_env }}
jobs:
-name: the-big-payback
plan:
get: samba-resource
params: {"path" : "directory-name-we-want-to-fetch" }
put: samba-resource
params: {"path" : "directory-name-we-want-to-create" }
- using smbclient, uses tar to backup
//server/share/path/$params.path
as$params.path
- generate an md5sum hash of the tarball as
version
- same as
check
, but inspectscheck.version
againstversion
- if it's different, Unpacks the tarball to current concourse workingd directory.
- archives the working directory into a tarball
- generates a md5sum hash of the tarball as the new
version
- uploads and unpacks it via smb to
//server/share/path/$params.path
- outputs the
version
path
: Optional. Directory to be bundled.