Hi Jason,

your questions are related to Maven usage, and they were kindly answered by
other folks in the other thread (even if this should be a thread on the
maven-users mailing list). The only thing that may be Jenkins-specific is
that Jenkins provides you with an environment variable BUILD_NUMBER
containing the build number. (hint, use versions-maven-plugin). If you want
more fancy versioning system, you can have a look at
https://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin .

Cheers,

Vincent

2015-10-14 23:07 GMT+02:00 Jason Tran <jasondt...@gmail.com>:

> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/97610ea9-04c6-4d8d-b4c8-e49488b38131%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/97610ea9-04c6-4d8d-b4c8-e49488b38131%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCjSjSMwoNFEx_s_7TRJ7mM5X3VphG%2B%3DYGKdzYup-gCYug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to