Drone plugins > Nexus Publish
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
stringoptionalA username for accessing Nexus Repository Manager.
Default: none
password
stringoptionalAn expression referencing a secret containing the password for the specified username.
Secret recommendedDefault: none
server_url
stringoptionalThe URL of your Nexus Repository Manager instance.
Default: none
filename
stringoptionalThe path to the target artifact that you want to upload.
Default: none
format
stringoptionalThe repository format.
Default: none
repository
stringoptionalThe name of the repository where you want to upload the artifact.
Default: none
attributes
stringoptionalComponent and asset attributes providing additional artifact metadata. "-CgroupId=org.dronetest -CartifactId=example -Cversion=1.0 -Aextension=jar -Aclassifier=bin"
Default: none