build: use version environment variable
diff --git a/releng/mvn-jwt-builder/pom.xml b/releng/mvn-jwt-builder/pom.xml
index 684aba7..4ea5608 100644
--- a/releng/mvn-jwt-builder/pom.xml
+++ b/releng/mvn-jwt-builder/pom.xml
@@ -42,6 +42,7 @@
<properties>
<tycho-version>0.18.0</tycho-version>
+ <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
</properties>
<repositories>
@@ -163,6 +164,27 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>Hudson Surrogate Params</id>
+ <properties>
+ <env.BUILD_NUMBER>UNKNOWN</env.BUILD_NUMBER>
+ <env.BUILD_ID>${maven.build.timestamp}</env.BUILD_ID>
+ <env.JOB_NAME>${project.name}</env.JOB_NAME>
+ <env.BUILD_TAG>${user.name}-${env.JOB_NAME}-${project.version}_${env.BUILD_NUMBER}-${env.BUILD_ID}</env.BUILD_TAG>
+ <env.EXECUTOR_NUMBER>0</env.EXECUTOR_NUMBER>
+ <env.WORKSPACE>${basedir}</env.WORKSPACE>
+ <env.HUDSON_URL>UNKNOWN</env.HUDSON_URL>
+ <env.SVN_REVISION>rUNKNOWN</env.SVN_REVISION>
+ </properties>
+ <activation>
+ <property>
+ <!-- Activated if Hudson hasn't already set the BUILD_NUMBER -->
+ <name>!env.BUILD_NUMBER</name>
+ </property>
+ </activation>
+ </profile>
+
</profiles>
</project>
\ No newline at end of file
diff --git a/releng/org.eclipse.jwt.p2updatesite/pom.xml b/releng/org.eclipse.jwt.p2updatesite/pom.xml
index b500684..a78613f 100644
--- a/releng/org.eclipse.jwt.p2updatesite/pom.xml
+++ b/releng/org.eclipse.jwt.p2updatesite/pom.xml
@@ -7,7 +7,7 @@
<relativePath>../../releng/mvn-jwt-builder/pom.xml</relativePath>
<groupId>org.eclipse.jwt</groupId>
<artifactId>parent</artifactId>
- <version>1.3.0.qualifier</version>
+ <version>${env.VERSION}.${maven.build.timestamp}</version>
</parent>
<groupId>org.eclipse.jwt</groupId>