Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

M2T-JET/Committer Resources

This page is intended for M2T-JET committers and other developers working with the JET source

Builds and Promotion

Galileo (and Helios?) promote fixes

The Eclipse Jar signing process is corrupting the org.eclipse.jet_1.0.x.yyyyyyyy.jar.gz file. See Bug 275150. As a work around, perform the following after a successful build, but prior to promotion to the Eclipse download sites:

  1. log into the build server (modeling.eclipse.org) using putty
  2. Use sudo to become the build user.
sudo -u apache -i 

Within the sudo shell, perform the following commands:

  1. Change to the build directory (e.g. /home/www-data/build/modeling/m2t/jet/downloads/drops/x.y.z/build-id).
  2. Use the zip command to delete the org.eclipse.jet_a.b.c.qualifier.jar.gz from the Master zip (m2t-jet-Master-build-id-or-alias.zip).
  3. Use the md5sum command to recompute the MD5 hash of the master zip file (m2t-jet-Master-build-id-or-alias.zip).
  4. Exit sudo

The following is an example of the commands given to the sudo shell.

cd /home/www-data/build/modeling/m2t/jet/downloads/drops/1.0.1/S200909010949 
zip -d m2t-jet-Master-1.0.1RC2.zip eclipse/plugins/org.eclipse.jet_1.0.1.v200908201022.jar.pack.gz
md5sum m2t-jet-Master-1.0.1RC2.zip > m2t-jet-Master-1.0.1RC2.zip.md5
exit

Finally, promote the build as usual.

Verifying packed files (*.jar.pack.gz)

Related to the above, you can verify the packed files created by the build as follows:

  1. copy the Master zip to a temporary location
  2. Use unzip to extract the Master zip contents
  3. Switch to the eclipse/plugins directory
  4. Use unpack200 to unpack the jar.pack.gz files
  5. Use jarsigner with the -verify option to verify the unpacked jars.

The following is an example of the above process:

cd /home/www-data/build/modeling/m2t/jet/downloads/drops/1.0.1/S200909010949
cp m2t-jet-Master-1.0.1RC2.zip ~
cd ~
unzip m2t-jet-Master-1.0.1RC2.zip
cd eclipse/plugins
unpack200 org.eclipse.jet_1.0.1.v200908201022.jar.pack.gz unpack.org.eclipse.jet_1.0.1.v200908201022.jar
jarsigner -verify unpack.org.eclipse.jet_1.0.1.v200908201022.jar

The error seen from the last step is typically:

jarsigner: java.lang.SecurityException: SHA1 digest error for org/eclipse/jet/internal/xpath/parser/XPathParser.class

Back to the top