2019-04-01 13:54:01 +02:00
# ${docGenStepName}
2017-07-11 15:12:03 +02:00
2019-04-01 13:54:01 +02:00
## ${docGenDescription}
2018-03-23 15:18:48 +02:00
2017-07-11 15:12:03 +02:00
## Prerequisites
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
* **SAP CP account** - the account to where the application is deployed.
* **SAP CP user for deployment** - a user with deployment permissions in the given account.
* **Jenkins credentials for deployment** - must be configured in Jenkins credentials with a dedicated Id.
![Jenkins credentials configuration ](../images/neo_credentials.png )
2017-12-28 17:16:02 +02:00
2019-03-15 09:23:12 +02:00
* **Neo Java Web SDK 3.39.10 or compatible version** - can be downloaded from [Maven Central ](http://central.maven.org/maven2/com/sap/cloud/neo-java-web-sdk/ ). This step is capable of triggering the neo deploy tool provided inside a docker image. We provide docker image `ppiper/neo-cli` . `neo.sh` needs to be contained in path, e.g by adding a symbolic link to `/usr/local/bin` .
2017-07-11 15:12:03 +02:00
2019-03-15 09:23:12 +02:00
* **Java 8 or compatible version** - needed by the *Neo-Java-Web-SDK* . Java environment needs to be properly configured (JAVA_HOME, java exectutable contained in path).
2017-07-11 15:12:03 +02:00
2019-04-01 13:54:01 +02:00
## ${docGenParameters}
## ${docGenConfiguration}
2018-03-06 14:43:53 +02:00
2019-05-24 15:44:31 +02:00
## ${docJenkinsPluginDependencies}
2019-05-24 15:41:49 +02:00
2017-07-11 15:12:03 +02:00
## Side effects
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
none
## Exceptions
2018-11-06 14:50:09 +02:00
2017-11-24 16:59:34 +02:00
* `Exception` :
2019-05-14 12:56:47 +02:00
* If `source` is not provided.
* If `propertiesFile` is not provided (when using `'WAR_PROPERTIESFILE'` deployment mode).
* If `application` is not provided (when using `'WAR_PARAMS'` deployment mode).
* If `runtime` is not provided (when using `'WAR_PARAMS'` deployment mode).
* If `runtimeVersion` is not provided (when using `'WAR_PARAMS'` deployment mode).
2017-11-24 16:59:34 +02:00
* `AbortException` :
2019-05-14 12:56:47 +02:00
* If neo-java-web-sdk is not installed, or `neoHome` is wrong.
2017-11-24 16:59:34 +02:00
* `CredentialNotFoundException` :
2019-05-14 12:56:47 +02:00
* If the credentials cannot be resolved.
2017-07-11 15:12:03 +02:00
## Example
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
```groovy
2019-01-28 12:32:24 +02:00
neoDeploy script: this, source: 'path/to/archiveFile.mtar', neo: [credentialsId: 'my-credentials-id', host: hana.example.org]
2017-07-11 15:12:03 +02:00
```
2017-12-27 12:37:53 +02:00
Example configuration:
2018-11-06 14:50:09 +02:00
```yaml
2017-12-27 12:37:53 +02:00
steps:
< ... >
neoDeploy:
2019-01-28 12:32:24 +02:00
deployMode: mta
neo:
account: < myDeployAccount >
host: hana.example.org
2017-12-27 12:37:53 +02:00
```