Versions objects in artifactory using the jfrog cli.
-
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 asmy-app-0.0.1.tgz
my-app-1.22.3-rc.123.tgz
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.
Places the file fetched from the bucket in the destination.
explode
: Optional. Iftrue
, the downloaded file will be untarred. (Defaults tofalse
)
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.
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 thepath
parameter in the resource definition. The matching syntax isbash
glob expansion, so no capture groups, etc.
You have to add the resource type.
resource_types:
- name: artifactory
type: docker-image
source:
repository: nkcraddock/concourse-artifactory-resource
tag: latest
- 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
- get: release
params: { explode: true }
- put: release
params:
file: path/to/my-app-*.tgz
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.