Hi,

simplest solution is to use build-helper-maven-plugin

http://www.mojohaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

Kind regards
Karl Heinz Marbaise
On 10/14/15 1:07 AM, Jason Tran wrote:
Hello there,

This is problem I am trying to solve:

1. checkout code from Github to a local directory D
2. run configure command inside directory D
3. create a tar.gz for directory
4. upload taz.gz file to Nexus

I am stuck at step 3:
- I can specify the verison in Maven pom.xml file, but is there a way to
automatically create a build version every time Jenkins is run?
- If I specify <packaging>tar.gz</packaging> in pom.xml file, I would
get: Unknown packaging: gz @ line 6, column 13


If I specify jar inside packaging, there is no error, and files are
upload to Nexus successfully.

Any advice would help, thanks!


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/561E0B57.7020900%40gmx.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to