Drone plugins > Nexus Publish
sonatype_nexus.png

Nexus Publish

by harness


Drone plugin to publish artifacts to Nexus Repository Manager.

Example

kind: pipeline
name: default
steps:
- steps:
  name: sam_build
  image: harnesscommunity/drone-nexus-publish
  settings:
    username: deploy-user
    password: testing-nexus
    server_url: http://nexus-publish.server
    filename: ./target/example.jar
    format: maven2
    repository: maven-releases
    attributes: "-CgroupId=org.testing -CartifactId=example -Cversion=1.0 -Aextension=jar -Aclassifier=bin"

Properties

  • username

    stringoptional

    A username for accessing Nexus Repository Manager.

    Default: none

  • password

    stringoptional

    An expression referencing a secret containing the password for the specified username.

    Secret recommended

    Default: none

  • server_url

    stringoptional

    The URL of your Nexus Repository Manager instance.

    Default: none

  • filename

    stringoptional

    The path to the target artifact that you want to upload.

    Default: none

  • format

    stringoptional

    The repository format.

    Default: none

  • repository

    stringoptional

    The name of the repository where you want to upload the artifact.

    Default: none

  • attributes

    stringoptional

    Component and asset attributes providing additional artifact metadata. "-CgroupId=org.dronetest -CartifactId=example -Cversion=1.0 -Aextension=jar -Aclassifier=bin"

    Default: none