athieriot / drone-artifactory Goto Github PK
View Code? Open in Web Editor NEWDrone plugin for publishing build artifacts to Artifactory
License: Apache License 2.0
Drone plugin for publishing build artifacts to Artifactory
License: Apache License 2.0
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.
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.