Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Milestone and Release Builds"

(Updating publish.xml to match your project.)
Line 6: Line 6:
 
# Create a branch in your source tree
 
# Create a branch in your source tree
 
# Copy https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml to your local *.repository/publish.xml.  For example: </code>cd org.eclipse.triquetrum.repository;wget https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml</code>
 
# Copy https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml to your local *.repository/publish.xml.  For example: </code>cd org.eclipse.triquetrum.repository;wget https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml</code>
# Edit your copy of publish.xml and update <code><property name="targetZipFileName" value="elk-nightly.zip" /></code> to match your project, for example: <code><property name="targetZipFileName" value="triquetrum-nightly.zip" /></code>
+
# Edit your copy of publish.xml and update  
 +
## <code><project name="Eclipse Layout Kernel" basedir="."></code> to match your project name.
 +
## <code><property name="targetZipFileName" value="elk-nightly.zip" /></code> to match your project name.
 
# While in the top level directory, test the command: <code>ant -file *.repository/publish.xml -DtargetDir=/tmp/test zipIt copy</code>  Adjust <code>*.repository</code> to match your layout.  For example: <code>ant -file org.eclipse.triquetrum.repository/publish.xml -DtargetDir=/tmp/test zipIt copy</code>
 
# While in the top level directory, test the command: <code>ant -file *.repository/publish.xml -DtargetDir=/tmp/test zipIt copy</code>  Adjust <code>*.repository</code> to match your layout.  For example: <code>ant -file org.eclipse.triquetrum.repository/publish.xml -DtargetDir=/tmp/test zipIt copy</code>
 
# Update the Hudson job and add as the last step an ant command:
 
# Update the Hudson job and add as the last step an ant command:

Revision as of 22:49, 21 September 2016

Part of the Incubation Phase is to create regular milestone and release builds on the mirrored and fault-tolerant download server.

The easiest way to do this is to create a publish.xml file in your repository target and then invoke ant. See https://hudson.eclipse.org/elk/ for Hudson jobs and see org.eclipse.elk.repository/publish.xml for a sample ant script.

More specifically:

  1. Create a branch in your source tree
  2. Copy https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml to your local *.repository/publish.xml. For example: </code>cd org.eclipse.triquetrum.repository;wget https://raw.githubusercontent.com/eclipse/elk/master/build/org.eclipse.elk.repository/publish.xml</code>
  3. Edit your copy of publish.xml and update
    1. <project name="Eclipse Layout Kernel" basedir="."> to match your project name.
    2. <property name="targetZipFileName" value="elk-nightly.zip" /> to match your project name.
  4. While in the top level directory, test the command: ant -file *.repository/publish.xml -DtargetDir=/tmp/test zipIt copy Adjust *.repository to match your layout. For example: ant -file org.eclipse.triquetrum.repository/publish.xml -DtargetDir=/tmp/test zipIt copy
  5. Update the Hudson job and add as the last step an ant command:
    1. Targets: zipIt copy
    2. Build File: org.eclipse.triquetrum.repository/publisher.xml
    3. Properties: targetDir=/shared/technology/triquetrum/updates/nightly/
      1. See Hudson -> Server Storage for the proper pathname
  6. Add the publish.xml file to the repo, commit the change, create a pull request and accept the pull requests.
  7. Go to the Hudson job, click Build Now and check the results.

See Also

Back to the top