HUB
Sign inSign up

digitalocean/artifactory-resource

By digitalocean

•Updated about 6 years ago

Concourse resource for triggering, getting & putting versions of artifacts within Artifactory

Image
0

500K+

digitalocean/artifactory-resource repository overview

⁠Artifactory Resource

Concourse resource for triggering, getting and putting new versions of artifacts within Artifactory repositories.

⁠Config

Complete source configuration details can be viewed in GoDoc on the Source struct⁠

⁠Check

Checks use the items domain to find artifacts with the supplied raw AQL⁠ or repo, path & name combination. Each artifact found is returned as its own unique version for Concourse with the Repo, Path, Name & Modified values from the Artifactory API. Modified is used to filter future checks to ensure that API queries stay performant.

⁠Get

Get will download an artifact to the input directory defined along with metadata for the artifact. The artifact is downloaded following its internal Artifactory path, so the resource/local-path metadata file is useful to provide the specific path within the input directory to the downloaded artifact. View GoDoc for GetParameter options⁠

⁠Put

Put supports publishing 1 or more artifacts using glob style patterns to locate artifacts to publish. View GoDoc for PutParameter options⁠

⁠Examples

Configure the resource type:

resource_types:
- name: artifactory
  type: docker-image
  source:
    repository: digitalocean/artifactory-resource
    tag: latest

Source configuration using raw AQL for item.find:

resources:
- name: myapplication
  type: artifactory
  icon: application-export
  source:
    endpoint: https://example.com/artifactory/
    user: ci
    password: ((artifactory.password))
    aql:
      raw: '{"repo": "artifacts-local", "path": {"$match" : "myapplication/*"}}'

Source configuration using repo, path, name:

resources:
- name: myapplication
  type: artifactory
  icon: application-export
  source:
    endpoint: https://example.com/artifactory/
    user: ci
    password: ((artifactory.password))
    aql:
      repo: artifacts-local
      path: myapplication/*
      name: '*'

Publishing artifacts to Artifactory:

- put: myapplication
  params:
    repo_path: code
    pattern: built/myapplication/(*)
    target: artifacts-local/myapplication/{1}

Tag summary

Content type

Image

Digest

Size

25.1 MB

Last updated

about 6 years ago

docker pull digitalocean/artifactory-resource