Skip to content

Commit

Permalink
JBDS-3187 new enforcer rule for BUILD_ALIAS != Final, merged from mas…
Browse files Browse the repository at this point in the history
…ter; also fix instructions for doing a Jenkins-like build
  • Loading branch information
nickboldt committed Oct 24, 2014
1 parent b5307f5 commit 5295237
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,35 @@
<buildEAPBundle>false</buildEAPBundle>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce-properversion</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>BUILD_ALIAS</property>
<message>BUILD_ALIAS is missing, it must be specified.</message>
<regex>.*((Alpha|Beta|CR)\d+[a-z]?)|GA</regex>
<regexMessage>The BUILD_ALIAS (${BUILD_ALIAS}) is invalid. Must contain either Alpha, Beta, CR or GA + optional postfix.</regexMessage>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<!--
Addendum to "hudson" profile from parent pom. This adds the correct download URL for EAP 6.3.0, which is not a public URL (unlike 6.1.0.Alpha).
Expand Down Expand Up @@ -147,7 +176,7 @@ Build product features, site, and installers like this:
To replicate a Jenkins CI build, run like this (unified.target and hudson profile require VPN access):
mvn clean install -P hudson,eap,pack200 -Dtpc.version=4.40.0.Beta4-SNAPSHOT -DBUILD_NUMBER=440004 -DJOB_NAME=devstudio.product_master -Dupdate.site.description="Development Milestone" -Djbosstools-site-stream=master
mvn clean install -P hudson,eap,pack200 -Dtpc.version=4.41.0.Final -DBUILD_NUMBER=440004 -DJOB_NAME=devstudio.product_4.2.luna -Dupdate.site.description="Development Milestone" -Djbosstools-site-stream=4.2.luna
See README.md for information building, installing, contributing, generated artifacts, and more.
Expand Down

0 comments on commit 5295237

Please sign in to comment.