Drone plugins > Artifactory
artifactory.svg

Artifactory

by athieriot


Use this plugin to publish artifacts from the build to Artifactory.

Example

kind: pipeline
name: default

steps:
- name: artifactory
  image: athieriot/drone-artifactory
  settings:
    url: http://arti.company.com
    username: admin
    password: password
    pom: pom.xml
    files:
      - target/*.jar
      - target/*.war

Properties

  • url

    stringrequired

    Artifactory URL (Includes scheme).

    Default: none

  • username

    stringrequired

    Artifactory username.

    Default: none

  • password

    stringrequired

    Artifactory password.

    Secret recommended

    Default: none

  • pom

    stringoptional

    The path to a pom.xml file were to read project details.

    Default: none

  • group_id

    stringoptional

    Project group id.

    Default: default to value from Pom file.

  • artifact_id

    stringoptional

    Project artifact id.

    Default: default to value from Pom file.

  • version

    stringoptional

    Artifact version.

    Default: default to value from Pom file.

  • repo_key

    stringoptional

    Target repository key.

    Default: libs-snapshot-local if version contains snapshot, libs-release-local otherwise.

  • files

    arrayoptional

    List of files to deploy.

    Default: none

  • force_upload

    booleanoptional

    Force upload if a file already exists.

    Default: false