Giter Site home page Giter Site logo

harness-community / drone-nexus-publish Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 12 KB

Drone plugin to publish artifacts to Nexus Repository Manager.

Home Page: https://hub.docker.com/repository/docker/harnesscommunity/publish-nexus-repository/

License: Apache License 2.0

Dockerfile 11.56% Groovy 88.44%
drone-ci drone-plugin harness-ci nexusrepositorymanager

drone-nexus-publish's Introduction

drone-nexus-publish

Drone plugin to publish artifacts to Nexus Repository Manager.

Docker

Build the Docker image with the following commands:

docker buildx build -t DOCKER_ORG/drone-nexus-publish --platform linux/amd64 .

Please note incorrectly building the image for the correct x64 linux and with CGO disabled will result in an error when running the Docker image:

docker: Error response from daemon: Container command
'/bin/drone-nexus-publish' not found or does not exist..

Usage

docker run --rm \
  -e PLUGIN_USERNAME=${username} \
  -e PLUGIN_PASSWORD=${password} \
  -e PLUGIN_SERVER_URL=http://nexus-publish.server \
  -e PLUGIN_FILENAME=./target/example.jar \
  -e PLUGIN_FORMAT=maven2 \
  -e PLUGIN_REPOSITORY=maven-releases \
  -e PLUGIN_ATTRIBUTES="-CgroupId=org.testing -CartifactId=example -Cversion=1.0 -Aextension=jar -Aclassifier=bin" \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  harnesscommunity/drone-nexus-publish

In Harness CI,

              - step:
                  type: Plugin
                  name: Plugin_1
                  identifier: Plugin_1
                  spec:
                    connectorRef: harnessnew
                    image: harnesscommunity/publish-nexus-repository:1.1.1
                    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"

drone-nexus-publish's People

Contributors

codewdhruv avatar ompragash avatar

Watchers

 avatar  avatar  avatar

Forkers

codewdhruv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.