Release Automation

Release Automation KB: Artifact Package XML 

May 11, 2015 03:48 PM

Latest RA Jenkins Plugin support seems-less artifact uploading into RA Nexus.

 

Plugin has a GUI option to tinker to select which type of artifact upload method and reference it with necessary info.

 

"Upload Artifact Package XML" option can be used to define which package to pick (using the package XML exported from ROC Artifact Package Management). Alternatively, for user who prefer on-the-fly generation for some more complex logic in artifact generation, following XML can be used in place of the GUI field.

 

(Note: Optional field cannot be left empty. The line has to be removed if there's no value)

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<p:package xmlns:p="http://www.example.org/ArtifactPackage">

    <p:name>Package-Test-${build_id}</p:name>

  <p:description>Package-Test-${build_id} Description</p:description>

      <p:artifactVersion>

     <p:name>Package-Test-${build_id}</p:name>

  <p:description>yeah</p:description>

  <p:artifactTypeName>java</p:artifactTypeName>

  <p:artifactDefinitionName>file4</p:artifactDefinitionName>

  <p:retrievalAgentName>ANT-RA-VM2008</p:retrievalAgentName>

     <!--<p:retrievalAgentGroupName>AGENT-GROUP</p:retrievalAgentGroupName>-->

  <p:storeInRepository>1</p:storeInRepository>

  <p:validateMD5>1</p:validateMD5>

  <p:LocalFileArtifact>

  <p:filePath>C:\server\jenkins\jobs\Trigger RA XML\workspace\file4.java</p:filePath>

  </p:LocalFileArtifact>

  </p:artifactVersion>

</p:package>

 

Artifact upload method block can be replaced with other methods: Example:

  <p:FTPArtifact>

         <p:filePath></p:filePath>

     <p:ftpPort></p:ftpPort>

     <p:hostname></p:hostname>

     <p:password></p:password>

     <p:securedCon></p:securedCon>

     <p:timeout></p:timeout>

      <p:username></p:username>

  </p:FTPArtifact>


  <p:HTTPArtifact>

     <p:artifactFileName></p:artifactFileName>

     <p:username></p:username>

    <p:password></p:password>

     <p:url></p:url>

  </p:HTTPArtifact>


  <p:SSHArtifact>

         <p:filePath></p:filePath>

     <p:hostname></p:hostname>

     <p:keystoreFile></p:keystoreFile>

     <p:keystorePassword></p:keystorePassword>

     <p:password></p:password>

     <p:sshPort></p:sshPort>

     <p:username></p:username>

  </p:SSHArtifact>

 

  <p:SVNArtifact>

         <p:allowUnversioned></p:allowUnversioned>

     <p:artifactFileName></p:artifactFileName>

     <p:password></p:password>

     <p:revisionNumber></p:revisionNumber>

     <p:serverURL></p:serverURL>

     <p:username></p:username>

  </p:SVNArtifact>


  <p:RemoteFileArtifact>

     <p:filePath></p:filePath>

     <p:password></p:password>

     <p:username></p:username>

  </p:RemoteFileArtifact>


  <p:RepositoryArtifact>

         <p:artifactId></p:artifactId>

     <p:artifactVersion></p:artifactVersion>

     <p:classifier></p:classifier>

     <p:groupId></p:groupId>

     <p:password></p:password>

     <p:username></p:username>

     <p:repositoryUrl></p:repositoryUrl>

     <p:type></p:type>

  </p:RepositoryArtifact>


  <p:TFSArtifact>

         <p:artifactFileName></p:artifactFileName>

     <p:collectionName></p:collectionName>

     <p:password></p:password>

     <p:targetItem></p:targetItem>

     <p:tfsCommandLinePath></p:tfsCommandLinePath>

     <p:tfsUrl></p:tfsUrl>

     <p:tfsVersion></p:tfsVersion>

     <p:username></p:username>

  </p:TFSArtifact>

 




Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.