We end up using mvn deploy:

mvn deploy:deploy-file -DgroupId=Home -DartifactId=RE 
-Dversion=0.0.0.1-SNAPSHOT -Dpackaging=tar.gz -DrepositoryId=Auc 
-Durl=http://nexus1.ccorp.com/nexus/content/repositories/snapshots 
-Dfile=RE-0.0.0.1-SNAPSHOT.tar.gz


On Friday, October 16, 2015 at 6:53:57 PM UTC-7, Jason Tran wrote:
>
> follow suggestion, I am using Assembly Plugin, but still having trouble 
> create tar.gz for Directory RE
>
>
> *Here is my pom.xml:*
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o$
> <modelVersion>4.0.0</modelVersion>
> <groupId>Auc</groupId>
> <artifactId>RE</artifactId>
> <version>1.0.0.112</version>
> <!-- <packaging>tgz</packaging> -->
> <name>RE Repository</name>
> <url>http://nexus1.ccorp.com/nexus</url>
> <build>
> <plugins>
>   <plugin>
>      <artifactId>maven-assembly-plugin</artifactId>
>      <version>2.6</version>
>      <executions>
>        <execution>
>          <configuration>
>            <descriptors>
>              <descriptor>format.xml</descriptor>
>            </descriptors>
>          </configuration>
>        </execution>
>      </executions>
>    </plugin>
>  </plugins>
> </build>
> </project>
>
>
> *Here is my format.xml file*, RE directory is where I checked out the 
> code and want to create tar.gz for it
>
> <assembly
>     
> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     
> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
>  http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
>     <id>bundle</id>
>     <formats>
>        <format>tar.gz</format>
>     </formats>
>     <moduleSets>
>             <moduleSet>
>                     <sources>
>                             <fileSets>
>                                     <fileSet>
>                                             
> <directory>/var/lib/jenkins/jobs/nightly_build/workspace/RE</directory>
>                                     </fileSet>
>                             </fileSets>
>                     </sources>
>             </moduleSet>
>     </moduleSets>
>     <includeBaseDirectory>false</includeBaseDirectory>
>
> </assembly>
>
>
> On Wednesday, October 14, 2015 at 2:06:14 PM UTC-7, Jason Tran wrote:
>>
>> ok thanks! I guess I should re-post and clarify I am looking for solution 
>> within Jenkins.
>>
>> On Wednesday, October 14, 2015 at 1:40:06 PM UTC-7, David Karlsen wrote:
>>>
>>> Ah sorry - I just saw the one maven plugin mentioned and found the other 
>>> better IMHO alternative.
>>> Yes - they are indeed maven plugins.
>>>
>>> 2015-10-14 22:29 GMT+02:00 Daniel Beck <[email protected]>:
>>>
>>>>
>>>> On 14.10.2015, at 22:23, Jason Tran <[email protected]> wrote:
>>>>
>>>> > I tried to search for these plugins under Available tab of Jenkins 
>>>> Manage Plugins but couldn't find them. Are they appear as different names 
>>>> in Jenkins plugin?
>>>>
>>>> They are Maven plugins. The proposed solutions are unrelated to Jenkins.
>>>>
>>>> --
>>>> 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/D92178B3-5554-4130-9129-1E9E0C633EF7%40beckweb.net
>>>> .
>>>> 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/1e06b6d9-5616-4f8a-a0cc-4e5f191238b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to