Giter Club home page Giter Club logo

concourse-artifactory-resource's Introduction

Artifactory Resource

Versions objects in artifactory using the jfrog cli.

Source Configuration

  • url: Required. The base url of the artifactory server API

  • path: Required. The path to the directory in artifactory

  • user: Required. The artifactory user

  • password: Required. The artifactory password

  • regexp: Required. The regular expression to match the file. There must be a capture group that will match the semver in the filename. For example, my-app-(.*).tgz has a capture group which would match files such as

    • my-app-0.0.1.tgz
    • my-app-1.22.3-rc.123.tgz

Behavior

check: Extract versions from the bucket.

Objects will be found via the pattern configured by regexp. The versions will be used to order them (using semver). Each object's filename is the resulting version.

in: Fetch an object from the bucket.

Places the file fetched from the bucket in the destination.

Parameters

  • explode: Optional. If true, the downloaded file will be untarred. (Defaults to false)

out: Upload an object to the bucket.

Given a file specified by file, upload it to the artifactory repo. The new file will be uploaded to the directory that the regex searches in.

Parameters

  • file: Required. Path or glob to the file to upload, provided by an output of a task. If multiple files are matched by the glob, an error is raised. The file which matches will be placed into the directory structure on artifactory as defined by the path parameter in the resource definition. The matching syntax is bash glob expansion, so no capture groups, etc.

Example Configuration

Resource Type

You have to add the resource type.

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

Resource

- name: release
  type: artifactory
  source:
    url: https://artifactory.example.org/artifactory
    path: repo/my-app
    regexp: my-app-(.*).tgz
    user: ARTIFACTORY_USER
    password: ARTIFACTORY_PASSWORD

Plan

- get: release
  params: { explode: true }
- put: release
  params:
    file: path/to/my-app-*.tgz

License

Copyright 2016 Ultimate Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

concourse-artifactory-resource's People

Contributors

nkcraddock avatar bbokorney avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.