Giter Club home page Giter Club logo

drone-artifactory's People

Contributors

athieriot avatar bradrydzewski avatar brgaulin avatar jackspirou avatar jmccann avatar kzaitsev avatar msteinert avatar tboerger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drone-artifactory's Issues

Simplify configuration required to upload maven artifacts

Hi there,

I was wondering if we could simplify the use of the artifactory plugin for uploading maven artifacts. With maven I could run:

mvn deploy

Maven would look at the pom, build the jar and upload the pom.xml and jar to artifactory.

With the artifactory plugin, I have to specify:

artifactory:
      url: my_companies_artifactory.com
      username: $$username
      password: $$password
      pom: pom.xml
      force_upload: true
      files:
        - pom.xml
        - target/*.jar

Could the plugin be updated so theoretically all that is required is:

artifactory:
      url: my_companies_artifactory.com
      username: $$username
      password: $$password
      pom: pom.xml
      force_upload: true

or if the jar is packaged to a non standard location
perhaps:

artifactory:
      url: my_companies_artifactory.com
      username: $$username
      password: $$password
      pom: pom.xml
      force_upload: true
      jar: target/custom_directory/executable.jar

This would reduce the risk of anyone forgetting to upload the pom.xml along with the artifact as well as making it easier to use.

I would be happy to have a go at implementing this if you think it's a worthwhile thing to do.

Lack of DRONE_VERSION

So I think the DRONE_VERSION environment variable was removed from Drone at some point between 0.5 and 0.8. This causes the plugin to go down the pre 0.5 code path and fail despite the fixes in #19 and #20. I've asked in the issue that requested the variable be introduced. harness/drone#1415

Examples of using the plugin

I am fairly new to drone, and i am struggling with using this plugin, either i can get drone to run successfully but completely skip anything related to the artifactory plugin, or it gives me an obscure error.

For example, if my entire .drone.yml looks like this:

pipeline:
  artifactory:
    image: athieriot/drone-artifactory
    url: [url]
    username: $$USERNAME
    password: $$PASSWORD
    pom: pom.xml
    repo_key: [repo_key]
    files:
      - target/*.jar
      - target/*.war
      - dist/**/*.min.js

the output of the drone run is:

username@80e6500b67fa:MobileAPI-- (joe_artifactory)$ drone exec
Running Matrix job #0

if i have my entire .drone.yml file looking like this:

pipeline:
  test:
    image: maven:alpine
    commands:
     - mvn --quiet --batch-mode test
     
  publish_war:
    image: maven:alpine
    commands:
      - mvn --batch-mode clean install
  deploy_war:
    plugin:
      artifactory:
        image: athieriot/drone-artifactory
        url: [url]
        username: $$USERNAME
        password: $$PASSWORD
        pom: pom.xml
        force_upload: true
        repo_key: [repo_key]
        files:
          - /root/.m2/repository/com/company/DEV/something-services/1/somehting-services-1.war

then everything prior to the deploy_war step runs successfully. What am I missing?

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.