forked from jboss-developer/jboss-eap-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RELEASE_PROCEDURE.html
85 lines (85 loc) · 4.83 KB
/
RELEASE_PROCEDURE.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head><title>Testing the quickstarts</title>
<link href="http://static.jboss.org/ffe/0/www/vendor/redhat/documentation.css" rel="stylesheet"></link>
<link href="http://static.jboss.org/ffe/0/www/vendor/redhat/pygments.css" rel="stylesheet"></link>
</head>
<body><h1><a href="#quickstarts-release-procedure" id="quickstarts-release-procedure">Quickstarts Release Procedure</a></h1>
<h2><a href="#testing-the-quickstarts" id="testing-the-quickstarts">Testing the quickstarts</a></h2>
<p>Most of the quickstarts require starting Red Hat JBoss Enterprise Application Platform in standalone mode. Some require the "standalone-full" profile, some require XTS, some require Postgres and some require other quickstarts to be deployed. Profiles are used in the root POM to separate out these groups, allowing you to test the quickstarts easily. For example, to run those that require only standalone mode:</p>
<pre><code> mvn clean verify wildfly:deploy wildfly:undeploy -Parq-remote -P-requires-postgres,-requires-full,-complex-dependencies,-requires-xts
</code></pre>
<p>Or, to run those only those quickstarts that require the full profile</p>
<pre><code> mvn clean verify wildfly:deploy wildfly:undeploy -Parq-remote -P-requires-postgres,-default,-complex-dependencies,-requires-xts
</code></pre>
<p>And so on.</p>
<h2><a href="#quickstarts-in-other-repositories" id="quickstarts-in-other-repositories">Quickstarts in other repositories</a></h2>
<p>If the quickstarts are stored in another repository, you may wish to merge them in from there, do this:</p>
<ol>
<li>
<p>Add the other repo as a remote</p>
<pre><code> git remote add -f <other repo> <other repo url>
</code></pre>
</li>
<li>
<p>Merge from the tag in the other repo that you wish to use. It is important to use a tag, to make tracking of history easier. We use a recursive merge strategy, always preferring changes from the other repo, in effect overwriting what we have locally.</p>
<pre><code> git merge <tag> -s recursive -Xtheirs -m "Merge <Other repository name> '<Tag>'"
</code></pre>
</li>
<li>
<p>Review and push to upstream</p>
<pre><code> git push upstream HEAD:master
</code></pre>
</li>
</ol>
<h2><a href="#rendering-markdown" id="rendering-markdown">Rendering Markdown</a></h2>
<p>The quickstarts use flexmark maven plugin to process the markdown. This builds on the basic markdown syntax, adding support for tables, code highlighting, relaxed code blocks etc). We add a couple of custom piece of markup - [TOC] which allows a table of contents, based on headings, to be added to any file, and [Quickstart-TOC], which adds in a table listing the quickstarts.</p>
<p>Just run</p>
<pre><code> mvn process-resources -Pdocs
</code></pre>
<p>To render all markdown files to HTML.</p>
<h2><a href="#publishing-builds-to-maven" id="publishing-builds-to-maven">Publishing builds to Maven</a></h2>
<ol>
<li>You must have gpg set up and your key registered, as described at <a href="hhttp://blog.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/">hhttp://blog.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/</a></li>
<li>You must provide a property <code>gpg.passphrase</code> in your <code>settings.xml</code> in the <code>release</code> profile e.g.
<pre><code> <profile>
<id>release</id>
<properties>
<gpg.passphrase>myPassPhrase</gpg.passphrase>
</properties>
</profile>
</code></pre>
</li>
<li>You must have a JBoss Nexus account, configured with the server id in <code>settings.xml</code> with the id <code>jboss-releases-repository</code> e.g.
<pre><code> <server>
<id>jboss-releases-repository</id>
<username>myUserName</username>
<password>myPassword</password>
</server>
</code></pre>
</li>
<li>
<p>Add <code>org.sonatype.plugins</code> plug-in group to your <code>settings.xml</code> so the Nexus plug-in can be available for publishing scripts.</p>
<pre><code> <pluginGroups>
<pluginGroup>org.sonatype.plugins</pluginGroup>
</pluginGroups>
</code></pre>
</li>
</ol>
<h2><a href="#release-procedure" id="release-procedure">Release Procedure</a></h2>
<ol>
<li>Make sure you have access to rsync files to <code>filemgmt.jboss.org/download_htdocs/jbossas</code></li>
<li>Release the archetypes</li>
<li>Regenerate the quickstart based on archetypes
<pre><code> dist/release-utils.sh -r
</code></pre>
</li>
<li>
<p>Release</p>
<pre><code> dist/release.sh -s <old snapshot version> -r <release version>
</code></pre>
<p>This will update the version number, commit and tag, build the distro zip and upload it to <download.jboss.org>. Then it will reset the version number back to the snapshot version number.</p>
</li>
</ol>
</body>
</html>