wiki:manuals/Release_lite
Last modified 6 years ago Last modified on 10/29/12 10:34:34

Release with maven

Let do a release of dcache-2.2.2. We assume, that current 2.2 branch has a version 2.2.2-SNAPSHOT.

  1. checkout branch to release
    $ svn co svn+ssh://svn.dcache.org/data/svn/dCache/branches/2.2
    $ cd 2.2
  1. run maven release target
    $ mvn --batch-mode release:prepare -DautoVersionSubmodules=true -DdevelopmentVersion=2.2.3-SNAPSHOT

this will run test, create a tag 2.2.2 and bump version number to 2.2.3-SNAPSHOT. The changes will be committed.

  1. Build packages.
  • go to dCache Build
  • select package type. Please Notice, that for version < 2.3 you have to select server-fhs for fhs packages. Starting 2.3 server will produce FSH package.
  • Click on Build. This will trigger a down-stream build with the correct configuration. Wait ...
  1. Collect the results.

After successful build collect packages from the down-stream project: dCache Packages.

  1. publish packages on www.dcache.org
    • Buy some flowers for Antje and ask for release notes.
    • If package is 1.9.12 then copy packages to www.dcache.org:/data/www/dcache.org/downloads/1.9
    • If package is 2.x then either:
      • Buy some more flowers and ask Antje to copy files to the correct dcache instance at desy
    • or
      • Generate a proxy certificate with /desy/Role=dcacheadmin (e.g., voms-proxy-init --voms desy:/desy/Role=dcacheadmin)
      • Rename the tar-ball file to include a package version (e.g., mv dcache-2.2.4.tar.gz dcache-2.2.4-1.tar.gz)
      • Create the directory ${BRANCH} srmmkdir srm://dcache-se-desy/pnfs/desy.de/desy/dcache.org/${BRANCH} (e.g., srmmkdir srm://dcache-se-desy/pnfs/desy.de/desy/dcache.org/2.2)
      • Upload files using SRM to the directory srm://dcache-se-desy/pnfs/desy.de/desy/dcache.org/${BRANCH} (e.g., srm://dcache-se-desy/pnfs/desy.de/desy/dcache.org/2.2)
    • Use wget to verify files are accessible via http://www.dcache.org/downloads/1.9/repo/${BRANCH}/${FILE} (e.g., http://www.dcache.org/downloads/1.9/repo/2.2/dcache-2.2.0-1.noarch.rpm)
    • Using md5sum (Linux machines) or digest -a md5 (Solaris machines) to calculate MD5 checksum for these files.
    • update releases.xml
    • log into dcache-infra03 ( though pal )
    • go to /www/www/dcache.org/downloads/1.9/ ( this is the same directory as on www.dcache.org )
    • run ./build-index.sh
    • check download page and newly generated links
  1. consume some coffee or some other staff.