amw:set-version-parameter

Full name:

ch.mobi.maven:amw-maven-plugin:2.1.40:set-version-parameter

Description:

This plugin allows to query AMW for a deployed version of an application.

It will then set a Maven Property (see: propertyName) and also log the key=value in the TeamCity setParameter syntax.

See: Changing a Build Parameter

Attributes:

Required Parameters

Name Type Since Description
applicationName String - AMW applicationName, used to deploy the deployed version
User property is: amwApplicationName.
serverName String - AMW server name, used to determine the deployed version
User property is: amwServerName.
sourceEnv String - AMW environment, used to retrieve the version
Default value is: Local.
User property is: amwSourceEnv.

Optional Parameters

Name Type Since Description
propertyName String - name of the property to be used to set the value of the retrieved version as maven property and as TeamCity parameter
Default value is: amw.version.
User property is: versionPropertyName.
url String - AMW REST interface url, no trailing slash, e.g. https://liima.host.domain/AMW_rest/resources
User property is: amwUrl.

Parameter Details

applicationName:

AMW applicationName, used to deploy the deployed version
  • Type: java.lang.String
  • Required: Yes
  • User Property: amwApplicationName

propertyName:

name of the property to be used to set the value of the retrieved version as maven property and as TeamCity parameter
  • Type: java.lang.String
  • Required: No
  • User Property: versionPropertyName
  • Default: amw.version

serverName:

AMW server name, used to determine the deployed version
  • Type: java.lang.String
  • Required: Yes
  • User Property: amwServerName

sourceEnv:

AMW environment, used to retrieve the version
  • Type: java.lang.String
  • Required: Yes
  • User Property: amwSourceEnv
  • Default: Local

url:

AMW REST interface url, no trailing slash, e.g. https://liima.host.domain/AMW_rest/resources
  • Type: java.lang.String
  • Required: No
  • User Property: amwUrl