The assembly plugin is also an alternative: http://maven.apache.org/plugins/maven-assembly-plugin/ (which can do creation of the archive, as well as attach it to he build).
2015-10-14 9:59 GMT+02:00 Karl Heinz Marbaise <[email protected]>: > 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. > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen -- 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/CAGO7Ob2bXRE%3DODm-woF2JaaavXBQRHecrOgUsgSMt%2Bv6xn0RbQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
