How to configure artifactory in drone 1.0.0

Hi everyone, I am trying to set up this configuration using Drone 1.0.0 but I am not sure if it is the appropriate syntax:

  • name: artifactory
    image: jmccann/drone-artifactory
    settings:
    url:
    from_secret: aritfactory_url
    username:
    from_secret: artifactory_username
    password:
    from_secret: artifactory_password
    pom: pom.xml
    files:
    - target/*.war
    force_upload: true
    environment:
    drone_version: 1.0.0

When I deployed it, I get this output:

time=“2019-06-18T23:36:35Z” level=info msg=“Artifactory Drone Plugin Version” Revision=
time=“2019-06-18T23:36:35Z” level=fatal msg=“unexpected end of JSON input”

Does someone knows how to configure environment variables?

I recently did this.

- name: other-plugin                                                                                                           
  image: jmccann/drone-artifactory:3                                                                                           
  settings:                                                                                                                    
    username: admin                                                                                                            
    password: password                                                                                                         
    url: http://192.168.0.1:8080                                                                                             
    actions:                                                                                                                   
      - action: upload                                                                                                         
        path: libs-snapshot-local/${DRONE_TAG}                                                                                 
        sources:                                                                                                               
          - target/*.jar
2 Likes

laszlocph, how do you map force_upload: true?

I don’t. Maybe the plugin docs has a mention of this field.

Ok, thanks laslocph!