Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-628

Release steps - 4.0.0

XMLWordPrintable

      — Pre-release steps —
      1. [R] Do svn merge of SBS theme from QA to PROD (https://svn.jboss.org/repos/cms/qa/sbs-theme/ to https://svn.jboss.org/repos/cms/prod/sbs-theme/)
      2. [R] Do svn merge of theme from QA to PROD (https://svn.jboss.org/repos/cms/qa/theme/ to https://svn.jboss.org/repos/cms/prod/theme/)

      — Backup steps —
      3. [D] Turn on Main. page
      4. [D] Stop SBS application
      5. Backup database SBS

      — Release steps —
      6. [D] On Apache Web Server:
      svn up /services/web/www.jboss.org/htdocs/theme

      7. [D] On Magnolia:
      svn up /services/magnoliaAuthor/deploy/magnoliaAuthor.war/docroot/jbossorg
      svn up /services/magnoliaPublic/deploy/magnoliaPublic.war/docroot/jbossorg

      8. [D] On SBS:
      svn up /usr/local/jive/applications/sbs/home/themes/jbossorg-sbs-theme/common_header/theme
      svn revert -R /usr/local/jive/applications/sbs/home/themes/jbossorg-sbs-theme
      svn up /usr/local/jive/applications/sbs/home/themes/jbossorg-sbs-theme

      9. [D] Delete /usr/local/jive/applications/template/application/WEB-INF/lib/cs-nukes-login-1.0-SNAPSHOT.jar
      10. [D] Perform SQL queries
      Go through steps in document https://docspace.corp.redhat.com/docs/DOC-41955 section "Prepare DB"

      11. [D] Change /usr/local/jive/applications/sbs/home/etc/spring.xml to this (put correct URL, username, password):
      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

      <bean id="nukesUsersDataSource" class="org.springframework.jdbc.datasource.SingleConnectionDataSource">
      <property name="driverClassName" value="com.mysql.jdbc.Driver" />
      <property name="url" value="jdbc:mysql://localhost:3306/nukes3_users" />
      <property name="username" value="sbs" />
      <property name="password" value="" />
      </bean>
      </beans>

      12. [D] Start SBS
      13. [L] Install the plugin - steps are document https://docspace.corp.redhat.com/docs/DOC-41955 section "Plugin installation"
      14. [D] Restart SBS
      15. [D] Add these new rules for community.jboss.org:
      RewriteRule /emailPasswordToken(.*) http://${addrs:clearspace}/account/emailPasswordJBossToken$1 [P,L]
      RewriteRule /resetPassword(.*) http://${addrs:clearspace}/account/resetJBossPassword$1 [P,L]
      RewriteCond %

      {REQUEST_URI} !^/edit-profile-avatar.*$
      RewriteRule /edit-profile(.*) http://${addrs:clearspace}/account/edit-jboss-profile$1 [P,L]
      RewriteRule /create-account(.*) http://${addrs:clearspace}/account/create-jboss-account$1 [P,L]

      16. [D] Remove these rules from community.jboss.org
      # Clearspace lost password redirect to nukes lost password
      RewriteRule ^/emailPasswordToken!input.jspa https://${addrs:apache}/index.html?op=lostpassscreen&module=lostpassword [R=permanent,L]

      17. [D] Add rules to www.jboss.org:
      # Backward compatibility for nukes URLs
      RewriteCond %{QUERY_STRING} ^.module=lostpassword.$
      RewriteCond %{REQUEST_URI}

      ^./index.html.$
      RewriteRule ^.*$ https://${addrs:apacheClearspace}/emailPasswordToken!input.jspa [R=permanent,L]

      RewriteCond %

      {QUERY_STRING}

      ^.op=checkage.$
      RewriteCond %

      {REQUEST_URI}

      ^./index.html.$
      RewriteRule ^.*$ https://${addrs:apacheClearspace}/emailPasswordToken!input.jspa [R=permanent,L]

      — Test steps —
      18. [L] Go through these test cases: https://docspace.corp.redhat.com/docs/DOC-41471
      19. [L] Check redirects:
      http://www.jboss.org/index.html?op=lostpassscreen&module=lostpassword -> https://community.jboss.org/emailPasswordToken!input.jspa
      http://migration.jboss.org/index.html?op=checkage&module=user -> https://community.jboss.org/emailPasswordToken!input.jspa

      — Post-relese steps —
      20. [D] Turn off Nukes EAP and whole VM

      — Rollback steps —
      [D] Stop SBS and import DB backup
      [D] Rollback puppet changes - spring.xml and jar file
      [D] Start SBS
      [D] Rollback rewrite rules

            lkrzyzan@redhat.com Libor Krzyžanek
            lkrzyzan@redhat.com Libor Krzyžanek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: