aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-08-24 11:17:44 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-08-24 12:19:00 -0700
commit781c67483dc02b17307f2f767bc5c88d9ac0eafc (patch)
treeef99c2083dcca6f44a180775a5c96b0e9aaffc82
parent04e2273efaee0bd79a42d17ab009d2393d7581a2 (diff)
Allow merge job to deploy to Nexus Snapshots repo
Change artifact version to -SNAPSHOT (with PEP 440 verioning workarounds) to allow the Jenkins merge job to deploy the artifacts to Snapshots repo. Change-Id: I9aa359da6608696757836e51f63f3512fcd6de4e Issue-id: TEST-48 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--pom.xml24
1 files changed, 19 insertions, 5 deletions
diff --git a/pom.xml b/pom.xml
index 1770604..5f78574 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,12 +1,11 @@
<?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>org.onap.testsuite.heatbridge</groupId>
<artifactId>heatbridge</artifactId>
<name>heatbridge</name>
- <version>0.3</version>
+ <version>0.3.0-SNAPSHOT</version>
<description>heatbridge used to stitch together some holes in the onap tests for release one</description>
<parent>
<groupId>org.onap.oparent</groupId>
@@ -15,7 +14,7 @@
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <wheel.name>${project.artifactId}-${project.version}-py2-none-any.whl</wheel.name>
+ <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>
<python.sourceDirectory>${project.basedir}/heatbridge</python.sourceDirectory>
</properties>
<build>
@@ -26,6 +25,20 @@
<version>3.0.0</version>
<executions>
<execution>
+ <id>write-python-version</id>
+ <goals>
+ <goal>regex-property</goal>
+ </goals>
+ <phase>initialize</phase>
+ <configuration>
+ <name>python_version</name>
+ <regex>-SNAPSHOT</regex>
+ <value>${project.version}</value>
+ <replacement>\.dev0</replacement>
+ <failIfNoMatch>false</failIfNoMatch>
+ </configuration>
+ </execution>
+ <execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
@@ -47,6 +60,7 @@
<artifactId>maven-python-distribute-plugin</artifactId>
<version>0.2.0</version>
<configuration>
+ <packageVersion>${python_version}</packageVersion>
<sourceDirectory>${python.sourceDirectory}</sourceDirectory>
<distributionType>wheel</distributionType>
</configuration>
@@ -94,4 +108,4 @@
<version>0.2.0</version>
</dependency>
</dependencies>
-</project> \ No newline at end of file
+</project>