Drone plugins > JFrog Artifactory
artifactory.svg

JFrog Artifactory

by harness


A plugin to upload files to Jfrog artifactory.

Example

kind: pipeline
name: default

steps:
- name: docker  
  image: plugins/artifactory
  settings:
    username: kevinbacon
    password: pa55word
    url: company.com/artifactory
    source: release.tar.gz
    target: app/release.tar.gz
    insecure: true
    pem_file_contents:
      from_secret: pem_file_contents

Properties

  • username

    stringoptional

    username for authentication with artifactory

    Default: none

  • password

    stringoptional

    password for authentication with artifactory

    Secret recommended

    Default: none

  • apikey

    stringoptional

    key for authentication with artifactory

    Secret recommended

    Default: none

  • url

    stringrequired

    location of the artifactory server

    Default: none

  • source

    stringrequired

    file(s) to upload

    Default: none

  • target

    stringrequired

    destination of source files in artifactory

    Default: none

  • retries

    numberoptional

    number of upload retries

    Default: 3

  • flat

    booleanoptional

    if true, artifacts are downloaded to the exact target path specified and their hierarchy in the source repository is ignored. if false, artifacts are downloaded to the target path in the file system while maintaining their hierarchy in the source repository

    Default: false

  • insecure

    booleanoptional

    if true, the connection to the source repository is not validated by checking the server certificate. if false, the connection to the source repository is validated by checking the server certificate

    Default: false

  • pem_file_contents

    stringoptional

    pem file contents for authentication with artifactory, cannot be used in conjunction with insecure

    Secret recommended

    Default: none

  • pem_file_path

    stringoptional

    pem file path for authentication with artifactory, defaults to either "C:/users/ContainerAdministrator/.jfrog/security/certs/cert.pem" or "/root/.jfrog/security/certs/cert.pem"

    Default: none